diff options
Diffstat (limited to 'ui/test/setup.js')
-rw-r--r-- | ui/test/setup.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/test/setup.js b/ui/test/setup.js new file mode 100644 index 000000000..7985e9a00 --- /dev/null +++ b/ui/test/setup.js @@ -0,0 +1,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 */ } +} |