test: move module tests to main process (#20419)
This commit is contained in:
parent
df1d3156a0
commit
8de925c4c2
21 changed files with 58 additions and 76 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue