Ghost/ghost/core/test/regression/api/admin
Fabien "egg" O'Carroll f3f9e5a2f3 Moved serialisation of formats into the serialiser-layer
This prepares us to return a DTO rather than BookshelfModel to the serialiser
layer. When passing a BookshelfModel, the serialisation layer uses the model to
read from when building computed properties. By stripping values out in the
toJSON method it means that the DTO will be missing them and the computed
properties won't be able to be calculated. Instead we return ALL values to the
serialisation layer, and then strip out the ones that weren't requested in the
"clean" step.

This also inadvertently fixes the issue with `reading_time` requiring the
`html` field to be requested, we can now request just `reading_time`, as well
as have it included by default.
2023-06-16 09:17:47 +02:00
..
__snapshots__ Update email mock receive (#16578) 2023-04-06 17:24:23 +02:00
authentication.test.js 🐛 Fixed site setup hanging when mail isn't configured 2023-05-11 11:58:27 -04:00
db.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
identities.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-importer.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-signin-url.test.js Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
notifications.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
pages.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
posts.test.js Removed old email flow (#16349) 2023-03-07 16:08:40 +01:00
redirects.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
schedules.test.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
settings.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
slack.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
update-user-last-seen.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
users.test.js Fixed import of bson-objectid in accordance to the typings 2022-10-12 14:54:35 +07:00
utils.js Moved serialisation of formats into the serialiser-layer 2023-06-16 09:17:47 +02:00
webhooks.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00