Created
August 27, 2012 12:08
-
-
Save airportyh/3487896 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $ mocha tests.js | |
| ․․ | |
| ✔ 2 tests complete (3ms) | |
| • 1 test pending | |
| $ mocha tests.js -R tap | |
| 1..2 | |
| ok 1 something does type coersion with == | |
| ok 2 something does non coerse with === # SKIP - |
This file contains hidden or 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 assert = require('assert') | |
| describe('something', function(){ | |
| it.only('does type coersion with ==', function(){ | |
| assert(2 == '2') | |
| }) | |
| it('does non coerse with ===', function(){ | |
| assert(!(2 === '2')) | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment