Skip to content

Instantly share code, notes, and snippets.

@ceth-x86
Created April 4, 2013 10:19
Show Gist options
  • Save ceth-x86/5309314 to your computer and use it in GitHub Desktop.
Save ceth-x86/5309314 to your computer and use it in GitHub Desktop.
QUnit : integrating with DOM
module("module 2", {
setup: function() {
$("body").append("<div id='div1'>some text</div>");
},
teardown: function() {
$("#div1").remove();
}
});
test("integrating with DOM", function() {
strictEqual($("#div1").length, 1)
strictEqual($("#div1").text(), 'some text');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment