aboutsummaryrefslogtreecommitdiffstats
path: root/ui/test/setup.js
blob: 7985e9a0043b6ee5eaeb49fec6ab203ed3ebf6ed (plain) (blame)
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 */ }
}