0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed tests

no issue
This commit is contained in:
Rish 2019-12-17 16:42:30 +05:30
parent fa3686bcc3
commit a3c2209420

View file

@ -114,7 +114,7 @@ describe('Unit: models/settings', function () {
return models.Settings.populateDefaults()
.then(() => {
// 2 events per item - settings.added and settings.[name].added
eventSpy.callCount.should.equal(86);
eventSpy.callCount.should.equal(88);
const eventsEmitted = eventSpy.args.map(args => args[0]);
const checkEventEmitted = event => should.ok(eventsEmitted.includes(event), `${event} event should be emitted`);
@ -137,7 +137,7 @@ describe('Unit: models/settings', function () {
return models.Settings.populateDefaults()
.then(() => {
// 2 events per item - settings.added and settings.[name].added
eventSpy.callCount.should.equal(84);
eventSpy.callCount.should.equal(86);
eventSpy.args[13][0].should.equal('settings.logo.added');
});