0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Tests: knex mock can resolve post tags relations

no issue

- nothing to describe here :)
This commit is contained in:
kirrg001 2018-04-05 17:33:30 +02:00 committed by Katharina Irrgang
parent 5928a5b240
commit f90a454014

View file

@ -18,7 +18,15 @@ class KnexMock {
initialiseDb() {
this.db = {};
_.each(_.pick(_.cloneDeep(DataGenerator.forKnex), ['posts', 'users', 'tags', 'permissions', 'roles', 'posts_authors']), (objects, tableName) => {
_.each(_.pick(_.cloneDeep(DataGenerator.forKnex), [
'posts',
'users',
'tags',
'permissions',
'roles',
'posts_authors',
'posts_tags'
]), (objects, tableName) => {
this.db[tableName] = [];
_.each(objects, (object) => {