0
Fork 0
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:
Fabien O'Carroll 2019-11-06 14:53:21 +07:00
parent 030819dc9e
commit 809334d7dd

View file

@ -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')
)
,