Interface ShouldAssertion

Index

Properties

Methods

Properties

public Array: ShouldAssertion

public Boolean: ShouldAssertion

public Error: ShouldAssertion

public Function: ShouldAssertion

public Infinity: ShouldAssertion

public NaN: ShouldAssertion

public Number: ShouldAssertion

public Object: ShouldAssertion

public String: ShouldAssertion

public a: ShouldAssertion

public an: ShouldAssertion

public and: ShouldAssertion

public arguments: ShouldAssertion

public be: ShouldAssertion

public empty: ShouldAssertion

public false: ShouldAssertion

public have: ShouldAssertion

public html: ShouldAssertion

public json: ShouldAssertion

public not: ShouldAssertion

public of: ShouldAssertion

public ok: ShouldAssertion

public true: ShouldAssertion

public with: ShouldAssertion

Methods

public above(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public approximately(value: number, delta: number, description?: string): ShouldAssertion

Parameters

  • value: number
  • delta: number
  • description?: string optional

Returns

ShouldAssertion

public below(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public contain(obj: any): ShouldAssertion

Parameters

  • obj: any

Returns

ShouldAssertion

public containDeep(obj: any): ShouldAssertion

Parameters

  • obj: any

Returns

ShouldAssertion

public containEql(obj: any): ShouldAssertion

Parameters

  • obj: any

Returns

ShouldAssertion

public endWith(expected: string, message?: any): ShouldAssertion

Parameters

  • expected: string
  • message?: any optional

Returns

ShouldAssertion

public eql(expected: any, description?: string): ShouldAssertion

Parameters

  • expected: any
  • description?: string optional

Returns

ShouldAssertion

public equal(expected: any, description?: string): ShouldAssertion

Parameters

  • expected: any
  • description?: string optional

Returns

ShouldAssertion

public exactly(expected: any, description?: string): ShouldAssertion

Parameters

  • expected: any
  • description?: string optional

Returns

ShouldAssertion

public greaterThan(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public haveOwnProperty(name: string, description?: string): ShouldAssertion

Parameters

  • name: string
  • description?: string optional

Returns

ShouldAssertion

public header(field: string, val?: string): ShouldAssertion

Parameters

  • field: string
  • val?: string optional

Returns

ShouldAssertion

public include(obj: any, description?: string): ShouldAssertion

Parameters

  • obj: any
  • description?: string optional

Returns

ShouldAssertion

public includeEql(obj: Array<any>, description?: string): ShouldAssertion

Parameters

  • obj: Array<any>
  • description?: string optional

Returns

ShouldAssertion

public instanceOf(constructor: Function, description?: string): ShouldAssertion

Parameters

  • constructor: Function
  • description?: string optional

Returns

ShouldAssertion

public instanceof(constructor: Function, description?: string): ShouldAssertion

Parameters

  • constructor: Function
  • description?: string optional

Returns

ShouldAssertion

public key(key: string): ShouldAssertion

Parameters

  • key: string

Returns

ShouldAssertion

public keys(allKeys?: Array<string>): ShouldAssertion

Parameters

  • allKeys?: Array<string> optional

Returns

ShouldAssertion

public keys(allKeys: Array<string>): ShouldAssertion

Parameters

  • allKeys: Array<string>

Returns

ShouldAssertion

public length(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public lengthOf(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public lessThan(n: number, description?: string): ShouldAssertion

Parameters

  • n: number
  • description?: string optional

Returns

ShouldAssertion

public match(other: {}, description?: string): ShouldAssertion

Parameters

  • other: {}
  • description?: string optional

Returns

ShouldAssertion

public match(other: (val: any) => any, description?: string): ShouldAssertion

Parameters

  • other: (val: any) => any
  • description?: string optional

Returns

ShouldAssertion

public match(regexp: RegExp, description?: string): ShouldAssertion

Parameters

  • regexp: RegExp
  • description?: string optional

Returns

ShouldAssertion

public match(other: any, description?: string): ShouldAssertion

Parameters

  • other: any
  • description?: string optional

Returns

ShouldAssertion

public matchEach(other: {}, description?: string): ShouldAssertion

Parameters

  • other: {}
  • description?: string optional

Returns

ShouldAssertion

public matchEach(other: (val: any) => any, description?: string): ShouldAssertion

Parameters

  • other: (val: any) => any
  • description?: string optional

Returns

ShouldAssertion

public matchEach(regexp: RegExp, description?: string): ShouldAssertion

Parameters

  • regexp: RegExp
  • description?: string optional

Returns

ShouldAssertion

public matchEach(other: any, description?: string): ShouldAssertion

Parameters

  • other: any
  • description?: string optional

Returns

ShouldAssertion

public ownProperty(name: string, description?: string): ShouldAssertion

Parameters

  • name: string
  • description?: string optional

Returns

ShouldAssertion

public properties(names: Array<string>): ShouldAssertion

Parameters

  • names: Array<string>

Returns

ShouldAssertion

public properties(name: string): ShouldAssertion

Parameters

  • name: string

Returns

ShouldAssertion

public properties(descriptor: any): ShouldAssertion

Parameters

  • descriptor: any

Returns

ShouldAssertion

public properties(properties?: Array<string>): ShouldAssertion

Parameters

  • properties?: Array<string> optional

Returns

ShouldAssertion

public property(name: string, description?: string): ShouldAssertion

Parameters

  • name: string
  • description?: string optional

Returns

ShouldAssertion

public property(name: string, val: any, description?: string): ShouldAssertion

Parameters

  • name: string
  • val: any
  • description?: string optional

Returns

ShouldAssertion

public startWith(expected: string, message?: any): ShouldAssertion

Parameters

  • expected: string
  • message?: any optional

Returns

ShouldAssertion

public status(code: number): ShouldAssertion

Parameters

  • code: number

Returns

ShouldAssertion

public throw(message?: any): ShouldAssertion

Parameters

  • message?: any optional

Returns

ShouldAssertion

public throwError(message?: any): ShouldAssertion

Parameters

  • message?: any optional

Returns

ShouldAssertion

public type(expected: any, description?: string): ShouldAssertion

Parameters

  • expected: any
  • description?: string optional

Returns

ShouldAssertion

public within(start: number, finish: number, description?: string): ShouldAssertion

Parameters

  • start: number
  • finish: number
  • description?: string optional

Returns

ShouldAssertion