diff --git a/lib/chai-as-promised.js b/lib/chai-as-promised.js index c34cd41..cea9e12 100644 --- a/lib/chai-as-promised.js +++ b/lib/chai-as-promised.js @@ -3,21 +3,21 @@ /* istanbul ignore else */ if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS - module.exports = factory(); + module.exports = factory(require("check-error")); } else if (typeof define === "function" && define.amd) { // AMD - define(factory); + define(["check-error"], factory); } else { /*global self: false */ // Other environment (usually