0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/core/test
Hannah Wolfe b2051dacf7 Fix post model deletes tags when editing post only
fixes #6919, refs #6917

- resolves the problem by guarding for `tags` being undefined or null
   - If it is undefined, we don't do any tag processing
   - If it is null, we don't do any tag processing
   - To delete all tags, you would provide `tags: []`
- adds tests at both the model (using withRelated) and API (using includes) layers
- moves the tests for the post updateTags functionality from the tag model spec to the post model spec & cleans up a bit
2016-06-02 22:52:34 +01:00
..
functional Revert "Force UTC at process level" 2016-06-02 14:38:02 +01:00
integration Fix post model deletes tags when editing post only 2016-06-02 22:52:34 +01:00
unit Revert "Force UTC at process level" 2016-06-02 14:38:02 +01:00
utils improvement: general fixes 2016-06-01 07:07:20 +02:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00