Skip to main content

assert

Functions

equal(a, b, [m])
notEqual(a, b, [m])
notOk(t, [m])
logicalEquals(a, b, [m])
assert(t, [m])
greaterThan(a, b, [m])
lessThan(a, b, [m])
greaterThanOrEqual(a, b, [m])
lessThanOrEqual(a, b, [m])
typeOf(value, type, valueName)
arrayHas(haystack, needle, [message])
arrayHasNo(haystack, needle, [message])
arrayEqual(a, b, [message])

equal(a, b, [m])

Kind: global function

ParamType
aT
bT
[m]string

notEqual(a, b, [m])

Kind: global function

ParamType
aT
bT
[m]string

notOk(t, [m])

Kind: global function

ParamType
tboolean
[m]string

logicalEquals(a, b, [m])

Kind: global function

ParamType
aobject
bobject
[m]string

assert(t, [m])

Kind: global function

ParamType
tboolean
[m]string

assert.enum(value, enumerable, [name])

Kind: static method of assert

ParamType
valueT
enumerableObject.<T>
[name]string

assert.isInstanceOf(value, klass, [value_name], [class_name])

Kind: static method of assert

ParamType
value*
klassClass
[value_name]string
[class_name]string

assert.isNumber(value, [name])

Kind: static method of assert

ParamType
valuenumber | *
[name]string

assert.isString(value, [name])

Kind: static method of assert

ParamType
valuestring | *
[name]string

assert.isBoolean(value, [name])

Kind: static method of assert

ParamType
valueboolean | *
[name]string

assert.isFunction(value, [name])

Kind: static method of assert

ParamType
valuefunction | *
[name]string

assert.isObject(value, [name])

Kind: static method of assert

ParamType
valueObject | *
[name]string

assert.isInteger(value, [name])

Kind: static method of assert

ParamType
valuenumber | *
[name]string

assert.isNonNegativeInteger(value, [name])

Kind: static method of assert

ParamType
valuenumber | *
[name]string

assert.isArray(value, name)

Kind: static method of assert

ParamType
valueArray.<T>
namestring

assert.isArrayLike(value, name)

Kind: static method of assert

ParamType
valueArrayLike.<T> | Array.<T> | Uint32Array | Float32Array
namestring

assert.defined(value, [name])

Kind: static method of assert

ParamType
value*
[name]String

assert.isNull(value, [name])

Kind: static method of assert

ParamType
value*
[name]String

assert.notNull(value, [name])

Kind: static method of assert

ParamType
value*
[name]String

assert.notNaN(value, name)

Kind: static method of assert

ParamType
valuenumber
namestring

assert.isFiniteNumber(value, name)

Kind: static method of assert

ParamType
valuenumber
namestring

assert.that(value, name, matcher)

Kind: static method of assert

ParamType
valueT
namestring
matcherMatcher.<T>

greaterThan(a, b, [m])

Kind: global function

ParamType
anumber
bnumber
[m]string

lessThan(a, b, [m])

Kind: global function

ParamType
anumber
bnumber
[m]string

greaterThanOrEqual(a, b, [m])

Kind: global function

ParamType
anumber
bnumber
[m]string

lessThanOrEqual(a, b, [m])

Kind: global function

ParamType
anumber
bnumber
[m]string

typeOf(value, type, valueName)

Kind: global function

ParamTypeDefault
value*
typestring
valueNamestring"value"

arrayHas(haystack, needle, [message])

Kind: global function

ParamTypeDefault
haystackArray.<T>
needleT
[message]string"Array does not contain the item"

arrayHasNo(haystack, needle, [message])

Kind: global function

ParamTypeDefault
haystackArray.<T>
needleT
[message]string"Array contains the item"

arrayEqual(a, b, [message])

Kind: global function

ParamTypeDefault
aArray.<T> | ArrayLike.<T> | Float32Array | Int32Array
bArray.<T> | ArrayLike.<T> | Float32Array | Int32Array
[message]string"Arrays are not equal"