0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/test/unit
Jacob Gable 7e9880ce8d Settings API Primary Document refactor
Closes #2606

- Refactor settings api responses to { settings: [ ] } format
- Update all code using api.settings to handle new response format
- Update test stubs to return new format
- Update client site settings model to parse new format into one object of key/value pairs
- Refactor to include all setting values
- Remove unused settingsCollection method
- Update settingsCache to store all attributes
- Update settingsResult to send all attributes
- Remove unnecessary when() wraps
- Reject if editing a setting that doesn't exist
- Reject earlier if setting key is empty
- Update tests with new error messages
- Use setting.add instead of edit that was incorrectly adding
- Update importer to properly import activePlugins and installedPlugins
- Update expected setting result fields
- Fix a weird situation where hasOwnProperty didn't exist 🤷
2014-04-30 23:15:27 -05:00
..
admin_spec.js
apps_spec.js AppProxy with permissions checks and app context 2014-04-26 10:38:23 -05:00
bootstrap_spec.js
config_spec.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00
errorHandling_spec.js Fixed check for a theme's custom error.hbs: 2014-03-29 08:19:51 -06:00
export_spec.js Add app permission checking to canThis 2014-04-16 18:06:39 +02:00
filters_spec.js Implement filter context 2014-04-06 15:43:11 +00:00
frontend_spec.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00
import_spec.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00
mail_spec.js
middleware_spec.js
permissions_spec.js Add permissions to API 2014-04-16 18:22:22 +02:00
server_helpers_index_spec.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00
server_helpers_template_spec.js
server_spec.js
showdown_client_integrated_spec.js
showdown_ghostGFM_spec.js
showdown_ghostimagepreview_spec.js
storage_localfilesystem_spec.js Build correct path on image upload when config has custom content path 2014-04-07 05:01:39 +00:00
xmlrpc_spec.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00