Hubwiz.com
|
Online Course
|
API Manual
Chai API Manual
Style(3)
Method(134)
Guide(18)
Style
assert
expect
should
Method
assert.assert
assert.fail
assert.isOk
assert.isNotOk
assert.equal
assert.notEqual
assert.strictEqual
assert.notStrictEqual
assert.deepEqual
assert.notDeepEqual
assert.isAbove
assert.isAtLeast
assert.isBelow
assert.isAtMost
assert.isTrue
assert.isNotTrue
assert.isFalse
assert.isNotFalse
assert.isNull
assert.isNotNull
assert.isNaN
assert.isNotNaN
assert.isUndefined
assert.isDefined
assert.isFunction
assert.isNotFunction
assert.isObject
assert.isNotObject
assert.isArray
assert.isNotArray
assert.isString
assert.isNotString
assert.isNumber
assert.isNotNumber
assert.isBoolean
assert.isNotBoolean
assert.typeOf
assert.notTypeOf
assert.instanceOf
assert.notInstanceOf
assert.include
assert.notInclude
assert.match
assert.notMatch
assert.property
assert.notProperty
assert.deepProperty
assert.notDeepProperty
assert.propertyVal
assert.propertyNotVal
assert.deepPropertyVal
assert.deepPropertyNotVal
assert.lengthOf
assert.throws
assert.doesNotThrow
assert.operator
assert.closeTo
assert.approximately
assert.sameMembers
assert.sameDeepMembers
assert.includeMembers
assert.includeDeepMembers
assert.oneOf
assert.changes
assert.doesNotChange
assert.increases
assert.doesNotIncrease
assert.decreases
assert.doesNotDecrease
assert.ifError
assert.isExtensible
assert.isNotExtensible
assert.isSealed
assert.isNotSealed
assert.isFrozen
assert.isNotFrozen
expect.not
expect.deep
expect.any
expect.all
expect.a
expect.include
expect.ok
expect.true
expect.false
expect.null
expect.undefined
expect.NaN
expect.exist
expect.empty
expect.arguments
expect.equal
expect.eql
expect.above
expect.least
expect.below
expect.most
expect.within
expect.instanceof
expect.property
expect.ownProperty
expect.ownPropertyDescriptor
expect.length
expect.lengthOf
expect.match
expect.string
expect.keys
expect.throw
expect.respondTo
expect.itself
expect.satisfy
expect.closeTo
expect.members
expect.oneOf
expect.change
expect.increase
expect.decrease
expect.extensible
expect.sealed
expect.frozen
utils.addChainableMethod
utils.addMethod
utils.addProperty
utils.expectTypes
utils.flag
utils.getEnumerableProperties
utils.getMessage
utils.getPathInfo
utils.getPathValue
utils.getProperties
utils.hasProperty
config.includeStack
config.showDiff
config.truncateThreshold
Guide
Plugin Utilities
Building a Helper
Adding Language Chains
Overwriting Language Chains
Adding Properties
Adding Methods
Methods as Properties
Overwriting Properties
Overwriting Methods
Core Plugin Concepts
Accessing Utilities
Using Flags
Composing an Assertion
flag usage
object flag
Basic Assertion
Composing Error Messages
Assertion Styles