diff --git a/packages/server/test/unit/plugins/util_spec.js b/packages/server/test/unit/plugins/util_spec.js index af64da26c552..18da9688042c 100644 --- a/packages/server/test/unit/plugins/util_spec.js +++ b/packages/server/test/unit/plugins/util_spec.js @@ -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()