Takes a TestResult and returns a readable string..
TestResult
stringifyTest({ given: "🟢", must: "🟩",}); // "[PASS] Given 🟢, must 🟩."stringifyTest({ differences: [...], given: "🟢", must: "🟩",}); // "[FAIL] Given 🟢, must 🟩, but..."
Readable string.
Test result object.
Takes a
TestResult
and returns a readable string..Example
Returns
Readable string.