power-assert-js / power-assert-formatter

Power Assert output formatter
MIT License
6 stars 3 forks source link

One line format. #21

Open jamestalmage opened 8 years ago

jamestalmage commented 8 years ago
assert.ok(two == three) => #ok(2 === 3) => #ok(false)
sindresorhus commented 8 years ago

Not sure about this. It's not that readable. It took me a bit until I got it.

Can you provide an example of how it would look with a more advanced assertion like:

const a = /foo/;
const b = 'bar';
const c = 'baz';
t.ok(a.test(b) || b === c);