From 30de0603caabf89988224970f023d529a1d89fda Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 27 Apr 2022 19:53:07 +0800 Subject: [PATCH] Fixed dynamic routing test suite refs https://github.com/TryGhost/Toolbox/issues/230 - Code tweaks to make test suite play nicely without single post author concept --- test/regression/site/dynamic_routing.test.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/regression/site/dynamic_routing.test.js b/test/regression/site/dynamic_routing.test.js index 0598b68d7b..40bf08e173 100644 --- a/test/regression/site/dynamic_routing.test.js +++ b/test/regression/site/dynamic_routing.test.js @@ -279,7 +279,9 @@ describe('Dynamic Routing', function () { }).then(function (insertedUser) { return testUtils.fixtures.insertPosts([ testUtils.DataGenerator.forKnex.createPost({ - author_id: insertedUser.id + authors: [{ + id: insertedUser.id + }] }) ]); }).then(function () { @@ -287,7 +289,9 @@ describe('Dynamic Routing', function () { }).then(function (insertedUser) { return testUtils.fixtures.insertPosts([ testUtils.DataGenerator.forKnex.createPost({ - author_id: insertedUser.id + authors: [{ + id: insertedUser.id + }] }) ]); }).then(() => { @@ -295,7 +299,9 @@ describe('Dynamic Routing', function () { }).then(function (insertedUser) { return testUtils.fixtures.insertPosts([ testUtils.DataGenerator.forKnex.createPost({ - author_id: insertedUser.id + authors: [{ + id: insertedUser.id + }] }) ]); }).then(function () {