Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusoftnet/8767986 to your computer and use it in GitHub Desktop.
Save marcusoftnet/8767986 to your computer and use it in GitHub Desktop.
should is nice to write almost english with
var should = require("should");
var name = "marcus";
name.should.equal("marcus");
// You could go to town and write almost-english...
user.age.should.be.within(5, 50);
(5).should.be.within(5, 10).and.within(5, 5);
(99.99).should.be.approximately(100, 0.1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment