Created
October 12, 2011 18:03
-
-
Save brikis98/1282023 to your computer and use it in GitHub Desktop.
Jasmine vs. QUnit specs
This file contains hidden or 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
| // Jasmine example | |
| it("expects value to be hello", function () { | |
| var value = "hello"; | |
| expect(value).toEqual("hello"); | |
| expect(value).not.toEqual("good bye"); | |
| }); |
This file contains hidden or 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
| // QUnit example | |
| test("a basic test example", function() { | |
| var value = "hello"; | |
| equal( value, "hello", "We expect value to be hello" ); | |
| notEqual(value, "good bye", "should not be equal to good bye"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment