0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -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') .without('type')
// deprecated // deprecated
.without('author_id', 'author') .without('author_id', 'author')
// pages are not sent as emails
.without('send_email_when_published')
// always returns computed properties // always returns computed properties
.concat('url', 'primary_tag', 'primary_author', 'excerpt') .concat('url', 'primary_tag', 'primary_author', 'excerpt')
// returned by default // returned by default
.concat('tags', 'authors') .concat('tags', 'authors')
// returns meta fields from `posts_meta` schema // returns meta fields from `posts_meta` schema
.concat( .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')
) )
, ,