Fix exception when refreshing specs window

This commit is contained in:
Cheng Zhao 2016-05-09 20:08:50 +09:00
parent af0afecb45
commit 797b0ddb9a

View file

@ -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')