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:
parent
fa3686bcc3
commit
a3c2209420
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue