Created
May 25, 2017 12:48
-
-
Save pahund/874734a309e18be1e835a2ecc43e3310 to your computer and use it in GitHub Desktop.
Creating a global variable for chai.expect
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 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