0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test
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
..
functional Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
integration Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
unit Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
utils Tests: Added missing attrs to DataGenerator 2018-04-05 18:51:58 +02:00
.eslintrc.json ESlint rule: no-multiple-empty-lines 2017-11-06 10:12:18 +00:00
.jshintrc