Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created August 19, 2012 15:21
Show Gist options
  • Save bjartwolf/3395454 to your computer and use it in GitHub Desktop.
Save bjartwolf/3395454 to your computer and use it in GitHub Desktop.
buster 101 test
require("buster");
var my = require("../lib/my.js");
buster.testCase("A module", {
"states the obvious": function () {
assert.equals(my.double(5), "10", "Should double the number");
},
"we need a funny failing test also": function () {
assert.same(my.double(5), "10", "Should double the number");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment