Skip to content

Commit

Permalink
Add unit test for new no send behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
tomudding committed Apr 9, 2022
1 parent cf26fc1 commit bb5bf68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/server/test/unit/plugins/util_spec.js
Expand Up @@ -31,6 +31,13 @@ describe('lib/plugins/util', () => {
expect(this.theProcess.send).not.to.be.called
})

it('#send does not send if process has been disconnected', function () {
this.theProcess.connected = false
this.ipc.send('event-name')

expect(this.theProcess.send).not.to.be.called
})

it('#on listens for process messages that match event', function () {
const handler = sinon.spy()

Expand Down

0 comments on commit bb5bf68

Please sign in to comment.