Created
May 25, 2017 11:16
-
-
Save diegogurgel/6a38ec380c11d00dc47401b7058eb28f to your computer and use it in GitHub Desktop.
Testing promises with chai-as-promised - node v6.10.2
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
const chai = require('chai'); | |
const expect = chai.expect; | |
chai.use(require('chai-as-promised')); | |
chai.should(); | |
describe('Promises', function() { | |
it('Should be true', function() { | |
return Promise.resolve(true).should.eventually.equal(true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment