Created
March 4, 2013 14:22
-
-
Save dtinth/5082537 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
> var chai = require('chai') | |
> chai.use(require('chai-as-promised')) | |
> var q = require('q') | |
> chai.should() | |
> var r = q.resolve(555).should.eventually.equal(3) | |
> var e | |
> r.fail(function(err) { e = err }) | |
> e | |
{ message: 'expected 555 to equal 3', | |
actual: | |
{ ... }, | |
expected: 3, | |
operator: undefined, | |
showDiff: true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment