Created
August 19, 2012 15:21
-
-
Save bjartwolf/3395454 to your computer and use it in GitHub Desktop.
buster 101 test
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
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