0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/test/integration/api
Vijay Kandy f2d09df512 Support for custom notifications (#7077)
closes #5071

- Send application/json requests to UpdateCheck service. New UpdateCheck service accepts JSON request
- If UpdateCheck service respponse has messages[] array, iterate over the array and create custom notifications intended for current version
- Save custom notification if its not already in the store AND its uuid is not in seenNotifications array
- When a custom notification is dismissed, store its uuid in seenNotifications array
- setup test fixtures to trigger tests properly
- api_notification_spec test to ensure custom notification can be added to store and added to seenNotifications when dismissed
- update_check_spec test to ensure custom notification can be displayed for a specific Ghost version
- added test to ensure messages meant for other versions don't create notifications
2016-07-22 14:02:10 +01:00
..
advanced_browse_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_authentication_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_configuration_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_db_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_mail_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_notifications_spec.js Support for custom notifications (#7077) 2016-07-22 14:02:10 +01:00
api_posts_spec.js fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
api_roles_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_schedules_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_settings_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_slugs_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_subscription_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_tags_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_themes_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_upload_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_users_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00