Ghost/core/test/unit/models
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
..
base Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
plugins Deleted bookshelf access plugin 2018-01-25 17:54:28 +01:00
post_spec.js Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
tag_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
user_spec.js Extended the API object validation 2018-04-05 18:51:58 +02:00