mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Fixed notify library tests
refsec28478435
- the method signature changed in9fa8800b9d
and the usage wasn't updated in Ghost - this commit updates the tests to reflect this internal change
This commit is contained in:
parent
71b647aab1
commit
f2ba9d3aac
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user