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:
parent
fabce59e0b
commit
5762e400a8
1 changed files with 6 additions and 4 deletions
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue