From f2ba9d3aac91ab3c2e244ac39e7a556b5b6243b1 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 6 Dec 2021 08:20:39 +0000 Subject: [PATCH] Fixed notify library tests refs https://github.com/TryGhost/Ghost/commit/ec284784352bfd7f612ddf43c7448e2070764ece - the method signature changed in https://github.com/TryGhost/Utils/commit/9fa8800b9de975dd543bbff4fc4d8c0de747018c and the usage wasn't updated in Ghost - this commit updates the tests to reflect this internal change --- test/unit/server/notify.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/unit/server/notify.test.js b/test/unit/server/notify.test.js index 739b3b3d99..80501b8cbb 100644 --- a/test/unit/server/notify.test.js +++ b/test/unit/server/notify.test.js @@ -68,9 +68,8 @@ describe('Notify', function () { socketStub.calledOnce.should.be.true(); socketStub.firstCall.args[0].should.eql('testing'); - socketStub.firstCall.args[1].should.be.an.Object().with.properties('info', 'warn'); - let message = socketStub.firstCall.args[2]; + let message = socketStub.firstCall.args[1]; message.should.be.an.Object().with.properties('started', 'debug'); message.should.not.have.property('error'); message.started.should.be.true(); @@ -83,9 +82,8 @@ describe('Notify', function () { socketStub.calledOnce.should.be.true(); socketStub.firstCall.args[0].should.eql('testing'); - socketStub.firstCall.args[1].should.be.an.Object().with.properties('info', 'warn'); - let message = socketStub.firstCall.args[2]; + let message = socketStub.firstCall.args[1]; message.should.be.an.Object().with.properties('started', 'debug', 'error'); message.started.should.be.false(); message.error.should.be.an.Object().with.properties('message');