提交 82192c3b 编写于 作者: B Benjamin Pasero

💄 tests loading properly

上级 fcd341cc
...@@ -10,6 +10,7 @@ const path = require('path'); ...@@ -10,6 +10,7 @@ const path = require('path');
const mocha = require('mocha'); const mocha = require('mocha');
const events = require('events'); const events = require('events');
const MochaJUnitReporter = require('mocha-junit-reporter'); const MochaJUnitReporter = require('mocha-junit-reporter');
const url = require('url');
const defaultReporterName = process.platform === 'win32' ? 'list' : 'spec'; const defaultReporterName = process.platform === 'win32' ? 'list' : 'spec';
...@@ -117,7 +118,7 @@ app.on('ready', () => { ...@@ -117,7 +118,7 @@ app.on('ready', () => {
win.webContents.send('run', argv); 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(); const runner = new IPCRunner();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册