Interface Assert

Index

Call signatures

Methods

Call signatures

(express: any, msg?: string)

Parameters

  • express: any
  • msg?: string optional

Methods

public Throw(fn: Function, msg?: string)

Parameters

  • fn: Function
  • msg?: string optional

public Throw(fn: Function, regExp: RegExp)

Parameters

  • fn: Function
  • regExp: RegExp

public Throw(fn: Function, errType: Function, msg?: string)

Parameters

  • fn: Function
  • errType: Function
  • msg?: string optional

public Throw(fn: Function, errType: Function, regExp: RegExp)

Parameters

  • fn: Function
  • errType: Function
  • regExp: RegExp

public closeTo(act: number, exp: number, delta: number, msg?: string)

Parameters

  • act: number
  • exp: number
  • delta: number
  • msg?: string optional

public deepEqual(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public deepProperty(obj: Object, prop: string, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • msg?: string optional

public deepPropertyNotVal(obj: Object, prop: string, val: any, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • val: any
  • msg?: string optional

public deepPropertyVal(obj: Object, prop: string, val: any, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • val: any
  • msg?: string optional

public doesNotThrow(fn: Function, msg?: string)

Parameters

  • fn: Function
  • msg?: string optional

public doesNotThrow(fn: Function, regExp: RegExp)

Parameters

  • fn: Function
  • regExp: RegExp

public doesNotThrow(fn: Function, errType: Function, msg?: string)

Parameters

  • fn: Function
  • errType: Function
  • msg?: string optional

public doesNotThrow(fn: Function, errType: Function, regExp: RegExp)

Parameters

  • fn: Function
  • errType: Function
  • regExp: RegExp

public equal(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public fail(actual?: any, expected?: any, msg?: string, operator?: string)

Parameters

  • actual?: any optional
  • expected?: any optional
  • msg?: string optional
  • operator?: string optional

public ifError(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public include(exp: string, inc: any, msg?: string)

Parameters

  • exp: string
  • inc: any
  • msg?: string optional

public include(exp: Array<any>, inc: any, msg?: string)

Parameters

  • exp: Array<any>
  • inc: any
  • msg?: string optional

public includeMembers(set1: Array<any>, set2: Array<any>, msg?: string)

Parameters

  • set1: Array<any>
  • set2: Array<any>
  • msg?: string optional

public instanceOf(val: any, type: Function, msg?: string)

Parameters

  • val: any
  • type: Function
  • msg?: string optional

public isArray(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isBoolean(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isDefined(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isFalse(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isFunction(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotArray(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotBoolean(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotFunction(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotNull(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotNumber(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotObject(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNotString(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNull(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isNumber(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isObject(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isString(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isTrue(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public isUndefined(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public lengthOf(exp: any, len: number, msg?: string)

Parameters

  • exp: any
  • len: number
  • msg?: string optional

public match(exp: any, re: RegExp, msg?: string)

Parameters

  • exp: any
  • re: RegExp
  • msg?: string optional

public notDeepEqual(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public notDeepProperty(obj: Object, prop: string, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • msg?: string optional

public notEqual(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public notInclude(exp: string, inc: any, msg?: string)

Parameters

  • exp: string
  • inc: any
  • msg?: string optional

public notInclude(exp: Array<any>, inc: any, msg?: string)

Parameters

  • exp: Array<any>
  • inc: any
  • msg?: string optional

public notInstanceOf(val: any, type: Function, msg?: string)

Parameters

  • val: any
  • type: Function
  • msg?: string optional

public notMatch(exp: any, re: RegExp, msg?: string)

Parameters

  • exp: any
  • re: RegExp
  • msg?: string optional

public notOk(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public notProperty(obj: Object, prop: string, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • msg?: string optional

public notStrictEqual(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public notTypeOf(val: any, type: string, msg?: string)

Parameters

  • val: any
  • type: string
  • msg?: string optional

public ok(val: any, msg?: string)

Parameters

  • val: any
  • msg?: string optional

public operator(val: any, operator: string, val2: any, msg?: string)

Parameters

  • val: any
  • operator: string
  • val2: any
  • msg?: string optional

public property(obj: Object, prop: string, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • msg?: string optional

public propertyNotVal(obj: Object, prop: string, val: any, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • val: any
  • msg?: string optional

public propertyVal(obj: Object, prop: string, val: any, msg?: string)

Parameters

  • obj: Object
  • prop: string
  • val: any
  • msg?: string optional

public sameMembers(set1: Array<any>, set2: Array<any>, msg?: string)

Parameters

  • set1: Array<any>
  • set2: Array<any>
  • msg?: string optional

public strictEqual(act: any, exp: any, msg?: string)

Parameters

  • act: any
  • exp: any
  • msg?: string optional

public throw(fn: Function, msg?: string)

Parameters

  • fn: Function
  • msg?: string optional

public throw(fn: Function, regExp: RegExp)

Parameters

  • fn: Function
  • regExp: RegExp

public throw(fn: Function, errType: Function, msg?: string)

Parameters

  • fn: Function
  • errType: Function
  • msg?: string optional

public throw(fn: Function, errType: Function, regExp: RegExp)

Parameters

  • fn: Function
  • errType: Function
  • regExp: RegExp

public throws(fn: Function, msg?: string)

Parameters

  • fn: Function
  • msg?: string optional

public throws(fn: Function, regExp: RegExp)

Parameters

  • fn: Function
  • regExp: RegExp

public throws(fn: Function, errType: Function, msg?: string)

Parameters

  • fn: Function
  • errType: Function
  • msg?: string optional

public throws(fn: Function, errType: Function, regExp: RegExp)

Parameters

  • fn: Function
  • errType: Function
  • regExp: RegExp

public typeOf(val: any, type: string, msg?: string)

Parameters

  • val: any
  • type: string
  • msg?: string optional