Skip to content

Instantly share code, notes, and snippets.

@samgiles
Created December 11, 2012 14:19
Show Gist options
  • Save samgiles/4258897 to your computer and use it in GitHub Desktop.
Save samgiles/4258897 to your computer and use it in GitHub Desktop.
Buster JS TestCase
var config = module.exports;
config["The Tests"] = {
env: "browser",
rootPath: ".",
tests:[
"*-test.js"
]
};
buster.testCase("My thing", {
"has the foo and bar": function () {
var fibonacci = function(n) {
if (n == 0) { return 0; }
if (n == 1) { return 1; }
return fibonacci(n - 1) + fibonacci(n-2);
}
// WAT?!
assert(fibonacci(43) === 433494437);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment