Interface IAssert

Index

Methods

Methods

public areEqual(expected: Object, actual: Object, message?: string)

Parameters

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

public areNotEqual(unexpected: Object, actual: Object, message?: string)

Parameters

  • unexpected: Object
  • actual: Object
  • message?: string optional

public areNotSame(unexpected: Object, actual: Object, message?: string)

Parameters

  • unexpected: Object
  • actual: Object
  • message?: string optional

public areSame(expected: Object, actual: Object, message?: string)

Parameters

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

public fail(message?: string)

Parameters

  • message?: string optional

public isArray(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isBoolean(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isFalse(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isFunction(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isInstanceOf(expected: Function, actual: Object, message?: string)

Parameters

  • expected: Function
  • actual: Object
  • message?: string optional

public isNaN(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isNotNaN(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isNotNull(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isNotUndefined(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isNull(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isNumber(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isObject(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isString(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isTrue(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public isTypeOf(expectedType: string, actualValue: Object, message?: string)

Parameters

  • expectedType: string
  • actualValue: Object
  • message?: string optional

public isUndefined(actual: Object, message?: string)

Parameters

  • actual: Object
  • message?: string optional

public pass(message?: string)

Parameters

  • message?: string optional

public throwsError(expectedError: string, method: Object, message?: string)

Parameters

  • expectedError: string
  • method: Object
  • message?: string optional

public throwsError(expectedError: Function, method: Object, message?: string)

Parameters

  • expectedError: Function
  • method: Object
  • message?: string optional

public throwsError(expectedError: Object, method: Object, message?: string)

Parameters

  • expectedError: Object
  • method: Object
  • message?: string optional