Last active
August 29, 2015 13:55
-
-
Save marcusoftnet/8767986 to your computer and use it in GitHub Desktop.
should is nice to write almost english with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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