Skip to content

Instantly share code, notes, and snippets.

@brikis98
Created October 12, 2011 18:03
Show Gist options
  • Select an option

  • Save brikis98/1282023 to your computer and use it in GitHub Desktop.

Select an option

Save brikis98/1282023 to your computer and use it in GitHub Desktop.
Jasmine vs. QUnit specs
// Jasmine example
it("expects value to be hello", function () {
var value = "hello";
expect(value).toEqual("hello");
expect(value).not.toEqual("good bye");
});
// 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