diff --git a/ui/desktop/tests/unit/services/ipc-test.js b/ui/desktop/tests/unit/services/ipc-test.js index 9716e31b8..1de9e29b0 100644 --- a/ui/desktop/tests/unit/services/ipc-test.js +++ b/ui/desktop/tests/unit/services/ipc-test.js @@ -10,7 +10,7 @@ module('Unit | Service | ipc', function(hooks) { // IPC requests talk to the main process indirectly via window.postMessage // proxy layer (mediated by preload.js). // But we don't want to send these for real in tests. - window.postMessage = sinon.fake(); + sinon.stub(window, 'postMessage'); }); hooks.afterEach(() => {