mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix exception when refreshing specs window
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user