0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
kirrg001 853b518a51 Sanitize incoming model relation data
refs #9548

- we always receive date strings from the client in ISO format
- we ensure that we transform these strings into JS dates for comparison
- when the client sends relations, we need to ensure that relations are checked as well
- will only work for the post model for now, because this is the only model which uses `bookshelf-relations`
- added unit tests
- removed some model tests, which do the same
2018-04-05 18:51:58 +02:00
..
adapters Use Promise support which was added in fs-extra 3.x 2017-12-13 20:57:11 +01:00
api Extended the API object validation 2018-04-05 18:51:58 +02:00
apps Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
data Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
helpers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
lib Koenig - Output captions for image and embed cards 2018-03-14 18:21:30 +00:00
models Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
public Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
services Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
web Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00