Skip to content

Instantly share code, notes, and snippets.

@tcorral
Created July 1, 2012 12:14
Show Gist options
  • Save tcorral/3028229 to your computer and use it in GitHub Desktop.
Save tcorral/3028229 to your computer and use it in GitHub Desktop.
Sample buster test case inside a closure
(function(win, doc){
function setup()
{
}
function teardown()
{
}
buster.testCase( "SampleTest", {
setUp: setup,
tearDown: teardown,
"test should check that doc is the same as window.document": function () {
assert.equals( window.document, doc );
}
} );
}(window, document));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment