Created
June 10, 2010 12:52
-
-
Save sdepold/432944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the basic structure | |
describe("the class you want to test", function() { | |
describe("a function you want to test", function() { | |
it("should do something", function() { | |
// your nice test code here | |
}) | |
}) | |
}) | |
// some more practical | |
describe("Car", function() { | |
describe("constructor", function() { | |
it("should throw exception if no speed limit is passed", function() { | |
// call the constructor and don't pass a speed limit! | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment