mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Removed accessive id erros in tests
refs 7172db74b0 (r70370252)
- The changes referenced above changed fixtures without taking "test fixtures" in "test/utils/fixtures/fixtures.json" into account. This fix is only cosmetical to unlutter the test output with logging level set to "error". Once the referenced comment is answered a proper fix should be applied here
This commit is contained in:
parent
2fdf8fd4b6
commit
e3d1507159
@ -142,7 +142,10 @@ async function doFixtures(data) {
|
|||||||
mobiledoc = mobiledoc.replace(/{{date}}/, date);
|
mobiledoc = mobiledoc.replace(/{{date}}/, date);
|
||||||
|
|
||||||
const post = await models.Post.findOne({slug: key});
|
const post = await models.Post.findOne({slug: key});
|
||||||
|
|
||||||
|
if (post) {
|
||||||
await models.Post.edit({mobiledoc}, {id: post.id});
|
await models.Post.edit({mobiledoc}, {id: post.id});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
Reference in New Issue
Block a user