refactor: use loadFile when appropriate in tests (#14422)

This commit is contained in:
Milan Burda 2018-09-04 16:50:53 +02:00 committed by Charles Kerr
parent e8782f2c2d
commit c63014c256
13 changed files with 115 additions and 137 deletions

View file

@ -22,7 +22,7 @@ describe('BrowserWindow with affinity module', () => {
webPreferences: webPrefs || {}
})
w.webContents.on('did-finish-load', () => { resolve(w) })
w.loadURL(`file://${path.join(fixtures, 'api', 'blank.html')}`)
w.loadFile(path.join(fixtures, 'api', 'blank.html'))
})
}