From 82192c3bcb8dbb5d3d4c10e6e7861af87b11f9f8 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 3 Oct 2018 17:38:36 +0200 Subject: [PATCH] :lipstick: tests loading properly --- test/electron/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/electron/index.js b/test/electron/index.js index 79c7136ca4c..ebd97e3b98b 100644 --- a/test/electron/index.js +++ b/test/electron/index.js @@ -10,6 +10,7 @@ const path = require('path'); const mocha = require('mocha'); const events = require('events'); const MochaJUnitReporter = require('mocha-junit-reporter'); +const url = require('url'); const defaultReporterName = process.platform === 'win32' ? 'list' : 'spec'; @@ -117,7 +118,7 @@ app.on('ready', () => { win.webContents.send('run', argv); }); - win.loadURL(`file://${__dirname}/renderer.html`); + win.loadURL(url.format({ pathname: path.join(__dirname, 'renderer.html'), protocol: 'file:', slashes: true })); const runner = new IPCRunner(); -- GitLab