test: use sinon stub correctly

This commit is contained in:
Randall Morey committed 2020-11-10 11:10:16 -05:00
1 parent 6f479bac82
commit fbfda37908
1 file changed
+1 -1
+1 -1
View File
@@ -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(() => {