spec: chai is funky

This commit is contained in:
Samuel Attard 2019-03-11 17:07:11 -07:00
parent 6b65e3523e
commit a55d1ef305
No known key found for this signature in database
GPG key ID: 191FEF027779CC6C
4 changed files with 25 additions and 9 deletions

2
DEPS
View file

@ -107,7 +107,7 @@ hooks = [
'action': [ 'action': [
'python', 'python',
'-c', '-c',
'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python", "script/lib/npm.py", "install"]);', 'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python", "script/lib/npm.py", "ci"]);',
], ],
}, },
{ {

24
spec/package-lock.json generated
View file

@ -5,9 +5,8 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"abstract-socket": { "abstract-socket": {
"version": "github:nornagon/node-abstractsocket#7d9c770f9ffef14373349034f8820ff059879845", "version": "2.0.0",
"from": "github:nornagon/node-abstractsocket#v8-compat", "resolved": "github:nornagon/node-abstractsocket#7d9c770f9ffef14373349034f8820ff059879845",
"dev": true,
"optional": true, "optional": true,
"requires": { "requires": {
"bindings": "^1.2.1", "bindings": "^1.2.1",
@ -66,7 +65,6 @@
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.4.0.tgz", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.4.0.tgz",
"integrity": "sha512-7znEVX22Djn+nYjxCWKDne0RRloa9XfYa84yk3s+HkE3LpDYZmhArYr9O9huBoHY3/oXispx5LorIX7Sl2CgSQ==", "integrity": "sha512-7znEVX22Djn+nYjxCWKDne0RRloa9XfYa84yk3s+HkE3LpDYZmhArYr9O9huBoHY3/oXispx5LorIX7Sl2CgSQ==",
"dev": true,
"optional": true, "optional": true,
"requires": { "requires": {
"file-uri-to-path": "1.0.0" "file-uri-to-path": "1.0.0"
@ -285,6 +283,19 @@
"put": "0.0.6", "put": "0.0.6",
"safe-buffer": "^5.1.1", "safe-buffer": "^5.1.1",
"xml2js": "^0.4.17" "xml2js": "^0.4.17"
},
"dependencies": {
"abstract-socket": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/abstract-socket/-/abstract-socket-2.0.0.tgz",
"integrity": "sha1-2DyT598w0n4j8+gqdj5/XnjZFvk=",
"dev": true,
"optional": true,
"requires": {
"bindings": "^1.2.1",
"nan": "^2.0.9"
}
}
} }
}, },
"debug": { "debug": {
@ -459,7 +470,6 @@
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"dev": true,
"optional": true "optional": true
}, },
"find-up": { "find-up": {
@ -778,7 +788,7 @@
}, },
"minimist": { "minimist": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"optional": true "optional": true
}, },
@ -1151,7 +1161,7 @@
}, },
"readable-stream": { "readable-stream": {
"version": "2.3.6", "version": "2.3.6",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"optional": true, "optional": true,
"requires": { "requires": {

View file

@ -7,7 +7,6 @@
"postinstall": "node ../tools/run-if-exists.js node_modules/robotjs node-gyp rebuild" "postinstall": "node ../tools/run-if-exists.js node_modules/robotjs node-gyp rebuild"
}, },
"devDependencies": { "devDependencies": {
"abstract-socket": "github:nornagon/node-abstractsocket#v8-compat",
"basic-auth": "^2.0.1", "basic-auth": "^2.0.1",
"bluebird": "^3.5.3", "bluebird": "^3.5.3",
"chai": "^4.2.0", "chai": "^4.2.0",
@ -33,6 +32,7 @@
"yargs": "^12.0.5" "yargs": "^12.0.5"
}, },
"optionalDependencies": { "optionalDependencies": {
"abstract-socket": "github:nornagon/node-abstractsocket#v8-compat",
"robotjs": "github:nornagon/robotjs#node-12" "robotjs": "github:nornagon/robotjs#node-12"
} }
} }

View file

@ -17,6 +17,12 @@
const electron = require('electron') const electron = require('electron')
const { remote, ipcRenderer } = 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. // Check if we are running in CI.
const isCi = remote.getGlobal('isCi') const isCi = remote.getGlobal('isCi')