Skip to content

Instantly share code, notes, and snippets.

@dominykas
Last active December 26, 2015 13:09
Show Gist options
  • Save dominykas/7156195 to your computer and use it in GitHub Desktop.
Save dominykas/7156195 to your computer and use it in GitHub Desktop.
var config = module.exports;
config["reduced-test-case"] = {
rootPath: ".",
environment: "browser",
sources: [
"dostuff.js"
],
tests:[
"test.js"
]
};
console.log("I can totally do stuff");
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
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