From fbfda37908276cfbce89cb85a8738afa4ef71593 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 10 Nov 2020 11:10:16 -0500 Subject: [PATCH] test: use sinon stub correctly --- ui/desktop/tests/unit/services/ipc-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {