Skip to content

Commit a2bc23e

Browse files
committed
Tests: Fix boot problem on windows
1 parent ba0a9ba commit a2bc23e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

33
const Application = require('spectron').Application
4+
const electron = require('electron')
45
const chai = require('chai')
56
const chaiAsPromised = require('chai-as-promised')
67
const path = require('path')
@@ -80,7 +81,7 @@ describe('demo app', function () {
8081

8182
const startApp = function () {
8283
app = new Application({
83-
path: path.join(__dirname, '..', 'node_modules', '.bin', 'electron'),
84+
path: electron,
8485
args: [
8586
path.join(__dirname, '..')
8687
],

0 commit comments

Comments
 (0)