setup.js 410 B

123456789101112131415161718
  1. 'use strict';
  2. //Load dependencies
  3. const Promise = require('bluebird');
  4. const chai = require('chai');
  5. const dirtyChai = require('dirty-chai');
  6. const chaiAsPromised = require('chai-as-promised');
  7. //Enable should assertion style for usage with chai-as-promised
  8. chai.should();
  9. //Extend chai
  10. chai.use(dirtyChai);
  11. chai.use(chaiAsPromised);
  12. //Expose globals
  13. global.Promise = Promise;
  14. global.expect = chai.expect;