Should.js API Manual
Command
- Assertion.add(name, func)
- Assertion.addChain(name, [onCall])
- Assertion.alias(from, to)
- PromisedAssertion(obj)
- should(obj)
- should.Assertion(obj)
- should.AssertionError(options)
- should.config
- should.extend([propertyName], [proto])
- should.noConflict([desc])
- should.use(f)
- Assertion#any
- Assertion#assert(expr)
- Assertion#fail()
- Assertion#not
- should.deepEqual(actual, expected, [message])
- should.doesNotThrow(block, [message])
- should.equal(actual, expected, [message])
- should.exist
- should.fail(actual, expected, message, operator)
- should.ifError(err)
- should.not.exist
- should.notDeepEqual(actual, expected, [message])
- should.notEqual(actual, expected, [message])
- should.notStrictEqual(actual, expected, [message])
- should.ok(value, [message])
- should.strictEqual(actual, expected, [message])
- should.throws(block, [error], [message])
- Assertion#false([message])
- Assertion#ok()
- Assertion#true([message])
- Assertion#be
- Assertion#containDeep(other)
- Assertion#containDeepOrdered(other)
- Assertion#containEql(other)
- Assertion#eql(val, [description])
- Assertion#equal(val, [description])
- Assertion#equalOneOf(vals)
- Assertion#oneOf(vals)
- Assertion#throw([message], [properties])
- Assertion#generator()
- Assertion#iterable()
- Assertion#iterator()
- Assertion#header(field, [val])
- Assertion#html()
- Assertion#json()
- Assertion#status(code)
- Assertion#match(other, [description])
- Assertion#matchAny(other, [description])
- Assertion#matchEach(other, [description])
- Assertion#Infinity()
- Assertion#NaN()
- Assertion#above(n, [description])
- Assertion#aboveOrEqual(n, [description])
- Assertion#approximately(value, delta, [description])
- Assertion#below(n, [description])
- Assertion#belowOrEqual(n, [description])
- Assertion#within(start, finish, [description])
- Assertion#Promise()
- Assertion#finally()
- Assertion#fulfilled()
- Assertion#fulfilledWith()
- Assertion#rejected()
- Assertion#rejectedWith()
- Assertion#empty()
- Assertion#enumerable(name, [val])
- Assertion#enumerables(names)
- Assertion#keys(keys)
- Assertion#length(n, [description])
- Assertion#ownProperty(name, [description])
- Assertion#properties(names)
- Assertion#property(name, [val])
- Assertion#propertyByPath(properties)
- Assertion#propertyWithDescriptor(name, desc)
- Assertion#size(s)
- Assertion#value(key, value)
- Assertion#endWith(str, [description])
- Assertion#startWith(str, [description])
- Assertion#alwaysCalledOn(obj)
- Assertion#alwaysCalledWith(args)
- Assertion#alwaysCalledWithExactly(args)
- Assertion#alwaysCalledWithMatch(args)
- Assertion#alwaysCalledWithNew()
- Assertion#alwaysThrew(ex)
- Assertion#callCount(count)
- Assertion#called()
- Assertion#calledOn(obj)
- Assertion#calledOnce()
- Assertion#calledThrice()
- Assertion#calledTwice()
- Assertion#calledWith(args)
- Assertion#calledWithExactly(args)
- Assertion#calledWithMatch(args)
- Assertion#calledWithNew()
- Assertion#neverCalledWith(args)
- Assertion#neverCalledWithMatch(args)
- Assertion#threw(ex)
- Assertion#Array()
- Assertion#Boolean()
- Assertion#Date()
- Assertion#Error()
- Assertion#Function()
- Assertion#Number()
- Assertion#Object()
- Assertion#String()
- Assertion#arguments()
- Assertion#class()
- Assertion#instanceof(constructor, [description])
- Assertion#null()
- Assertion#type(type, [description])
- Assertion#undefined()
Package