Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 25, 2017 12:48
Show Gist options
  • Save pahund/874734a309e18be1e835a2ecc43e3310 to your computer and use it in GitHub Desktop.
Save pahund/874734a309e18be1e835a2ecc43e3310 to your computer and use it in GitHub Desktop.
Creating a global variable for chai.expect
const chai = require('chai');
const sinonChai = require('sinon-chai');
const chaiAsPromised = require('chai-as-promised');
const chaiEnzyme = require('chai-enzyme');
chai.use(sinonChai);
chai.use(chaiAsPromised);
chai.use(chaiEnzyme());
global.chaiExpect = chai.expect;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment