Skip to content

Instantly share code, notes, and snippets.

@diegogurgel
Created May 25, 2017 11:16
Show Gist options
  • Save diegogurgel/6a38ec380c11d00dc47401b7058eb28f to your computer and use it in GitHub Desktop.
Save diegogurgel/6a38ec380c11d00dc47401b7058eb28f to your computer and use it in GitHub Desktop.
Testing promises with chai-as-promised - node v6.10.2
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