DefinitelyTyped

Index

Dynamic modules

Functions

Functions

assert(value: any, message?: string)

Parameters

  • value: any
  • message?: string optional

doesNotThrow: { (block: Function, message?: string): void; (block: Function, error: Function, message?: string): void; (block: Function, error: RegExp, message?: string): void; (block: Function, error: (err: any) => boolean, message?: string): void; }

()

()

()

()

throws: { (block: Function, message?: string): void; (block: Function, error: Function, message?: string): void; (block: Function, error: RegExp, message?: string): void; (block: Function, error: (err: any) => boolean, message?: string): void; }

()

()

()

()

AssertionError: AssertionError

constructor(options?: { message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function; }): AssertionError

Parameters

  • options?: { message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function; } optional

Returns

AssertionError

public actual: any

public expected: any

public generatedMessage: boolean

public message: string

public name: string

public operator: string

deepEqual(actual: any, expected: any, message?: string)

Parameters

  • actual: any
  • expected: any
  • message?: string optional

equal(actual: any, expected: any, message?: string)

Parameters

  • actual: any
  • expected: any
  • message?: string optional

fail(actual?: any, expected?: any, message?: string, operator?: string)

Parameters

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

ifError(value: any)

Parameters

  • value: any

notDeepEqual(acutal: any, expected: any, message?: string)

Parameters

  • acutal: any
  • expected: any
  • message?: string optional

notEqual(actual: any, expected: any, message?: string)

Parameters

  • actual: any
  • expected: any
  • message?: string optional

notStrictEqual(actual: any, expected: any, message?: string)

Parameters

  • actual: any
  • expected: any
  • message?: string optional

ok(value: any, message?: string)

Parameters

  • value: any
  • message?: string optional

strictEqual(actual: any, expected: any, message?: string)

Parameters

  • actual: any
  • expected: any
  • message?: string optional