test: move module tests to main process (#20419)

This commit is contained in:
Jeremy Apthorp 2019-10-09 16:33:15 -07:00 committed by GitHub
parent df1d3156a0
commit 8de925c4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 58 additions and 76 deletions

View file

@ -2210,7 +2210,7 @@ describe('BrowserWindow module', () => {
w.loadFile(path.join(fixtures, 'api', 'native-window-open-iframe.html'))
});
ifit(!process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS)('loads native addons correctly after reload', async () => {
w.loadFile(path.join(fixtures, 'api', 'native-window-open-native-addon.html'))
w.loadFile(path.join(__dirname, 'fixtures', 'api', 'native-window-open-native-addon.html'))
{
const [, content] = await emittedOnce(ipcMain, 'answer')
expect(content).to.equal('function')