💄 tests loading properly

This commit is contained in:
Benjamin Pasero
2018-10-03 17:38:36 +02:00
parent fcd341cc72
commit 82192c3bcb

View File

@@ -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();