Function stringifyTest

  • Takes a TestResult and returns a readable string..

    Example

    stringifyTest({
    given: "🟢",
    must: "🟩",
    }); // "[PASS] Given 🟢, must 🟩."
    stringifyTest({
    differences: [...],
    given: "🟢",
    must: "🟩",
    }); // "[FAIL] Given 🟢, must 🟩, but..."

    Returns

    Readable string.

    Type Parameters

    • Value

    Parameters

    • testResult: TestResult<Value>

      Test result object.

    Returns string