0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/test/integration/model
Nazar Gargol 4c5bff0f49 Removed toJSON serialization in findPage method (#9899)
refs #9866

- Removed `toJSON` call in `findPage`
- Added JSON serialization on API layer
- Reason: model and api layer were coupled - all other model actions just returned the raw data and no specific format
- Corrected test suites to serialize fetched models to JSON
- Removed `absolute_urls` attribute from validOptions findPage methods as it's no longer needed in the data layer
- Changed 'include' test as this option is now tolerated and returns data
2018-09-26 14:11:22 +02:00
..
base Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
model_accesstoken_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
model_app-fields_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
model_app-settings_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
model_apps_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
model_invite_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_permissions_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
model_posts_spec.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
model_roles_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_settings_spec.js 🔥 Removed permalink setting 2018-08-16 12:13:24 +02:00
model_tags_spec.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
model_users_spec.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00