Fix exception when refreshing specs window
This commit is contained in:
parent
af0afecb45
commit
797b0ddb9a
1 changed files with 4 additions and 0 deletions
|
@ -182,6 +182,10 @@ describe('ipc module', function () {
|
|||
})
|
||||
|
||||
describe('ipc.sendSync', function () {
|
||||
afterEach(function () {
|
||||
ipcMain.removeAllListeners('send-sync-message')
|
||||
})
|
||||
|
||||
it('can be replied by setting event.returnValue', function () {
|
||||
var msg = ipcRenderer.sendSync('echo', 'test')
|
||||
assert.equal(msg, 'test')
|
||||
|
|
Loading…
Reference in a new issue