Skip to content

Commit 01b1a1c

Browse files
committed
Test fix - specify electron-mocha version.
1 parent 2bd051d commit 01b1a1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build_against_electron.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ function publish() {
1818

1919
function electron_pretest() {
2020
npm install -g electron@${ELECTRON_VERSION}
21-
npm install -g electron-mocha
21+
if [ "$NODE_VERSION" -lte 6 ]; then
22+
npm install -g electron-mocha@7
23+
else
24+
npm install -g electron-mocha
25+
fi
2226
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
2327
(sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )&
2428
else

0 commit comments

Comments
 (0)