Install the Sinon-Chai Package: npm install --save sinon-chai Initialization: var chai = require('chai'); var sinon = require('sinon'); chai.use(require('sinon-chai'));