UNPKG

must

Version:

Testing and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.

12 lines (7 loc) 289 B
var O = require("oolong") var assert = require("assert") var Must = require("../..") exports = module.exports = assert.bind(null) O.assign(exports, assert) exports.pass = function(fn) { exports.doesNotThrow(fn) } exports.fail = function(fn) { exports.throws(fn, Must.AssertionError) }