Ghost/ghost/custom-theme-settings-service/test
Kevin Ansfield dbf7d33c88 Added tests for Cache class, fixed singular .get('key') behaviour
refs https://github.com/TryGhost/Team/issues/1104

- `.get('key')` would error because it was incorrectly expecting the internal content object to contain `{key, value}` objects
- changed `.getAll()` to return a shallow copy of the internal content object so we don't leak references that can result in unexpected changes to the cache content
- changed the internal content object naming to `_content` to highlight that it's an internal/private implementation detail rather than a public API
2021-10-06 13:12:26 +01:00
..
utils slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
.eslintrc.js slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00
cache.test.js Added tests for Cache class, fixed singular .get('key') behaviour 2021-10-06 13:12:26 +01:00
hello.test.js slimer new custom-theme-settings-service 2021-09-21 17:21:52 +01:00