mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed tests for pages api
no-issue
This commit is contained in:
parent
030819dc9e
commit
809334d7dd
1 changed files with 6 additions and 1 deletions
|
@ -54,13 +54,18 @@ const expectedProperties = {
|
|||
.without('type')
|
||||
// deprecated
|
||||
.without('author_id', 'author')
|
||||
// pages are not sent as emails
|
||||
.without('send_email_when_published')
|
||||
// always returns computed properties
|
||||
.concat('url', 'primary_tag', 'primary_author', 'excerpt')
|
||||
// returned by default
|
||||
.concat('tags', 'authors')
|
||||
// returns meta fields from `posts_meta` schema
|
||||
.concat(
|
||||
..._(schema.posts_meta).keys().without('post_id', 'id')
|
||||
..._(schema.posts_meta).keys()
|
||||
.without('post_id', 'id')
|
||||
// pages are not sent as emails
|
||||
.without('email_subject')
|
||||
)
|
||||
,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue