mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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
This commit is contained in:
parent
e38c8a4662
commit
30de0603ca
1 changed files with 9 additions and 3 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue