0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Tests: consistency for DataGenerator

no issue

- add `visibility` property
- use proper boolean for page attribute
This commit is contained in:
kirrg001 2018-04-16 00:07:59 +02:00
parent fabce59e0b
commit 5762e400a8

View file

@ -75,14 +75,14 @@ DataGenerator.Content = {
title: 'This is a static page',
slug: 'static-page-test',
mobiledoc: DataGenerator.markdownToMobiledoc('<h1>Static page test is what this is for.</h1><p>Hopefully you don\'t find it a bore.</p>'),
page: 1
page: true
},
{
id: ObjectId.generate(),
title: 'This is a draft static page',
slug: 'static-page-draft',
mobiledoc: DataGenerator.markdownToMobiledoc('<h1>Static page test is what this is for.</h1><p>Hopefully you don\'t find it a bore.</p>'),
page: 1,
page: true,
status: 'draft'
},
{
@ -441,7 +441,8 @@ DataGenerator.forKnex = (function () {
created_at: new Date(),
created_by: DataGenerator.Content.users[0].id,
published_at: new Date(),
published_by: DataGenerator.Content.users[0].id
published_by: DataGenerator.Content.users[0].id,
visibility: 'public'
});
}
@ -475,7 +476,8 @@ DataGenerator.forKnex = (function () {
created_by: DataGenerator.Content.users[0].id,
created_at: new Date(),
updated_at: new Date(),
updated_by: DataGenerator.Content.users[0].id
updated_by: DataGenerator.Content.users[0].id,
visibility: 'public'
});
}