setup.js 230 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 if (typeof process === 'object') { // Initialize node environment global.expect = require('chai').expect require('mocha-jsdom')() } else { window.expect = window.chai.expect window.require = function () { /* noop */ } }