mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03: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
@ -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…
Reference in New Issue
Block a user