test-format
Format minimal tests
A test is an object with the fields name
, expected
, and result
:
const format = var test = name: 'NaN' expected: true result: NaN === NaN console// -> '✖ NaN'
Since formatted tests are just plain strings, logging multiple test results is a breeze.
console
install
npm install test-format