spec: chai is funky

This commit is contained in:
Samuel Attard
2019-03-11 17:07:11 -07:00
parent 6b65e3523e
commit a55d1ef305
4 changed files with 25 additions and 9 deletions

View File

@@ -17,6 +17,12 @@
const electron = require('electron')
const { remote, ipcRenderer } = electron
// Set up chai-as-promised here first to avoid conflicts
// It must be loaded first or really strange things happen inside
// chai that cause test failures
// DO NOT MOVE, REMOVE OR EDIT THIS LINE
require('chai').use(require('chai-as-promised'))
// Check if we are running in CI.
const isCi = remote.getGlobal('isCi')