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:
parent
5928a5b240
commit
f90a454014
1 changed files with 9 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue