Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Forked from tcorral/buster_closure_bug
Created July 5, 2012 06:37
Show Gist options
  • Save cjohansen/3051793 to your computer and use it in GitHub Desktop.
Save cjohansen/3051793 to your computer and use it in GitHub Desktop.
Sample buster test case inside a closure
exports.Browser = {
tests: ["closure-bug-test.js"]
};
(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