Class Tester<T, U>

Type Parameters

  • T

  • U extends ((...p) => T)

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • T

    • U extends ((...p) => T)

    Parameters

    • _eq: ((a, b) => boolean)
        • (a, b): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    • _to_str: ((t) => string)
        • (t): string
        • Parameters

          • t: T

          Returns string

    • testName: string = '_default_'

    Returns Tester<T, U>

Properties

eq: ((a, b) => boolean)

Type declaration

    • (a, b): boolean
    • Parameters

      • a: T
      • b: T

      Returns boolean

failed: number = 0
passed: number = 0
startTime: number
to_str: ((t) => string)

Type declaration

    • (t): string
    • Parameters

      • t: T

      Returns string

Methods

  • Parameters

    • expect: T
    • func: U
    • Rest ...params: any[]

    Returns void

Generated using TypeDoc