Ghost/test/unit/models
Naz 2c1ae2e9af 🐛 Fixed a 500 error for incorrect fields parameter in API
refs 8a1fd1f57f
refs 5584430ddc

- The change to async/await in the original commit 558443 was causing problems in downstream dependencies (create-error package) where it was loosing a context of "this". It's not a direct dependency so I didn't go yak shaving into where exacly the context is lost.
- The fix to keep a correct context of "this" was sticking to an existing pattern using regular function returning promises. Once we need to redo them into async/await we can investigate if there's a way around create-error's context prolbem
2021-07-06 11:58:37 +04:00
..
base 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-06 11:58:37 +04:00
api-key_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
integration_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
invite_spec.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
member_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
permission_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
post_spec.js 🐛 Fixed __GHOST_URL__ appearing in sitemaps (#12787) 2021-03-18 17:16:37 +00:00
session_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
settings_spec.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
single-use-token_spec.js 🐛 Added multiple use grace period to tokens (#12519) 2021-01-18 17:03:41 +00:00
tag_spec.js Skipped separate count query in .findPage() for limit="all" requests 2020-08-27 01:09:07 +01:00
user_spec.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00