Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding committed Aug 17, 2021
1 parent 15b7482 commit 5a71130
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/test/unit/modes/interactive_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 5a71130

Please sign in to comment.