lukeed / uvu

uvu is an extremely fast and lightweight test runner for Node.js and the browser
MIT License
2.98k stars 99 forks source link

Assertion failure output trims newlines in string match failure #199

Open aral opened 2 years ago

aral commented 2 years ago

Output of assertion failure:

FAIL  CLI  "version"
Version command output is as expected.  (equal)

    Actual:
    --nodekit,·1.0.0
    Expected:
    ++nodekit,·1.0.0

at assert (file:///home/aral/Projects/small-web/nodekit/app/node_modules/uvu/assert/index.mjs:33:8)
at Module.equal (file:///home/aral/Projects/small-web/nodekit/app/node_modules/uvu/assert/index.mjs:45:2)

(The first line has a newline at the end but it is being trimmed, making it impossible to tell what the difference is from looking at the error message.)

rschristian commented 2 years ago

Looks like a duplicate of #110