-
-
Save cjohansen/3051793 to your computer and use it in GitHub Desktop.
Sample buster test case inside a closure
This file contains 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
exports.Browser = { | |
tests: ["closure-bug-test.js"] | |
}; |
This file contains 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
(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