0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed acceptance tests for posts_meta refactor

refs d9dbcf6147
This commit is contained in:
Nazar Gargol 2020-09-17 21:19:26 +12:00
parent d177852d1f
commit bd16c2216a

View file

@ -64,11 +64,6 @@ fixtures = {
return Promise.map(DataGenerator.forKnex.tags, function (tag) {
return models.Tag.add(tag, module.exports.context.internal);
})
.then(function () {
return Promise.map(DataGenerator.forKnex.posts_meta, function (postMeta) {
return models.PostsMeta.add(postMeta, module.exports.context.internal);
});
})
.then(function () {
return Promise.each(_.cloneDeep(DataGenerator.forKnex.posts), function (post) {
let postTagRelations = _.filter(DataGenerator.forKnex.posts_tags, {post_id: post.id});
@ -87,6 +82,11 @@ fixtures = {
return models.Post.add(post, module.exports.context.internal);
});
})
.then(function () {
return Promise.map(DataGenerator.forKnex.posts_meta, function (postMeta) {
return models.PostsMeta.add(postMeta, module.exports.context.internal);
});
});
},