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

fix: migration fixture spec was suddenly failing (#7091)

no issue
This commit is contained in:
Katharina Irrgang 2016-07-14 14:30:46 +02:00 committed by Austin Burdine
parent 6e1bd2838e
commit 8395a4ec72

View file

@ -1022,7 +1022,7 @@ describe('Fixtures', function () {
// CASE: we update migrations settings entry
if (this.get('key') === 'migrations') {
migrationsSettingsWasUpdated = true;
return Promise.resolve(newModels[Object.keys(newModels)[0]]);
return Promise.resolve(newModels[Object.keys(newModels)[0]] || {attributes: {value: migrationsSettingsValue}});
}
return Promise.resolve(newModels[Number(this.get('key'))]);