diff --git a/packages/server/test/unit/modes/interactive_spec.js b/packages/server/test/unit/modes/interactive_spec.js index cd774cab9625..c433729c0ab2 100644 --- a/packages/server/test/unit/modes/interactive_spec.js +++ b/packages/server/test/unit/modes/interactive_spec.js @@ -25,11 +25,11 @@ describe('gui/interactive', () => { }) context('.getWindowArgs', () => { - it('exits process when onClose is called', () => { - sinon.stub(process, 'exit') + it('quits app when onClose is called', () => { + electron.app.quit = sinon.stub() interactiveMode.getWindowArgs({}).onClose() - expect(process.exit).to.be.called + expect(electron.app.quit).to.be.called }) it('tracks state properties', () => {