examples from should.js docs:
var user =name: 'tj'pets: 'tobi' 'loki' 'jane' 'bandit';usershouldhave;usershouldhavewith;
how about from expect.js:
Don't even get me started on Node.js assert.
Terst has three main advantages:
npm install --save terst
component install jprichardson/terst
Asserts if the value is truthy.
Asserts if the value is falsey.
val1 strictly equals
val does not strictly equal
Asserts if the value is within +- the delta.
Asserts if a function throws i.e. if it does not throw, there is an error.
NOTE: For descriptive errors, you can set
terse.autoMsg = true. It's experimental only.
Copyright 2013-2014, JP Richardson firstname.lastname@example.org