Function isTest

  • Check if given value is a Test.

    Example

    isTest({ given: "🟢", must: "🟩", received: "🟩", wanted: "🟩" }); // true
    isTest({ given: 1, must: 2, received: 3, wanted: 4 }); // false
    isTest(); // false

    Returns

    true if is a Test, false otherwise.

    Type Parameters

    • Actual = unknown

    Parameters

    • value: Test<unknown> | Actual

      Value to check.

    Returns value is Test<unknown>