Last active
December 26, 2015 13:09
-
-
Save dominykas/7156195 to your computer and use it in GitHub Desktop.
Trivial setup for https://github.com/busterjs/buster/issues/386
This file contains hidden or 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
var config = module.exports; | |
config["reduced-test-case"] = { | |
rootPath: ".", | |
environment: "browser", | |
sources: [ | |
"dostuff.js" | |
], | |
tests:[ | |
"test.js" | |
] | |
}; |
This file contains hidden or 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
console.log("I can totally do stuff"); |
This file contains hidden or 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
Chrome 30.0.1599.101, Mac OS X 10.8.5 dostuff should actually do stuff | |
[LOG] Setting up 1 | |
[LOG] Setting up 1 | |
[LOG] Check if stuff is done 2 | |
[LOG] Check if stuff is done 2 | |
Running 1 tests in 1 runtime ... 100% done |
This file contains hidden or 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
var callCount = 0; | |
var callback = function () { | |
return ++callCount; | |
}; | |
buster.testCase("dostuff", { | |
"setUp": function () { | |
console.log("Setting up "+callback()); | |
}, | |
"should actually do stuff": function () { | |
console.log("Check if stuff is done "+callback()); | |
buster.referee.assert(true); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment