Skip to content

Commit

Permalink
Add sinon-chai and rewire
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Chipiga authored and schipiga committed Feb 1, 2018
1 parent 9a4709c commit 3b7b4c1
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 11 deletions.
12 changes: 11 additions & 1 deletion lib/globals.js
Expand Up @@ -11,9 +11,13 @@ var path = require("path");
var _ = require("lodash");
var chai = require("chai");
var chai_as_promised = require("chai-as-promised");
var sinon = require("sinon");
var sinon_chai = require("sinon-chai");
var U = require("glace-utils");
var LOG = U.logger;

chai.use(chai_as_promised);
chai.use(sinon_chai);

require("./matcher");
var CONF = require("./config");
Expand Down Expand Up @@ -51,7 +55,13 @@ global.expect = chai.expect;
*
* @global
*/
global.sinon = require("sinon");
global.sinon = sinon;
/**
* `rewire` is great lib for monkey patching.
*
* @global
*/
global.rewire = require("rewire");
/**
* `GlaceJS` config.
*
Expand Down

0 comments on commit 3b7b4c1

Please sign in to comment.