test: narrow scope of afterEach in remote to tests that need it (#18447)
This commit is contained in:
parent
96b32a814c
commit
0e2dedaf4e
1 changed files with 3 additions and 4 deletions
|
@ -23,10 +23,6 @@ const comparePaths = (path1, path2) => {
|
||||||
describe('remote module', () => {
|
describe('remote module', () => {
|
||||||
const fixtures = path.join(__dirname, 'fixtures')
|
const fixtures = path.join(__dirname, 'fixtures')
|
||||||
|
|
||||||
let w = null
|
|
||||||
|
|
||||||
afterEach(() => closeWindow(w).then(() => { w = null }))
|
|
||||||
|
|
||||||
describe('remote.getGlobal filtering', () => {
|
describe('remote.getGlobal filtering', () => {
|
||||||
it('can return custom values', () => {
|
it('can return custom values', () => {
|
||||||
ipcRenderer.send('handle-next-remote-get-global', { test: 'Hello World!' })
|
ipcRenderer.send('handle-next-remote-get-global', { test: 'Hello World!' })
|
||||||
|
@ -552,6 +548,9 @@ describe('remote module', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('remote function in renderer', () => {
|
describe('remote function in renderer', () => {
|
||||||
|
let w = null
|
||||||
|
|
||||||
|
afterEach(() => closeWindow(w).then(() => { w = null }))
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
ipcMain.removeAllListeners('done')
|
ipcMain.removeAllListeners('done')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue