Fixed notify library tests

refs ec28478435

- the method signature changed in
  9fa8800b9d
  and the usage wasn't updated in Ghost
- this commit updates the tests to reflect this internal change
This commit is contained in:
Daniel Lockyer 2021-12-06 08:20:39 +00:00
parent 71b647aab1
commit f2ba9d3aac
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -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');