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.
13 lines (10 loc) • 353 B
JavaScript
var Must = require("../..")
var assert = require("./assert")
describe(".prototype.ownProperty", function() {
require("./_property_test")("ownProperty", false)
it("must pass if object has property named hasOwnProperty", function() {
assert.pass(function() {
Must({hasOwnProperty: false}).have.ownProperty("hasOwnProperty")
})
})
})