Skip to content

Instantly share code, notes, and snippets.

@airportyh
Created August 27, 2012 12:08
Show Gist options
  • Select an option

  • Save airportyh/3487896 to your computer and use it in GitHub Desktop.

Select an option

Save airportyh/3487896 to your computer and use it in GitHub Desktop.
$ 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 -
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