Ghost/test/unit
Hannah Wolfe 71f02d25e9 Refactored server announce functions to be clearer
- the announce functions exist for the purpose of communicating with Ghost CLI
- the functions were called announceServerStart and announceServerStopped, which implies they tell Ghost CLI when the server starts and stops
- however, the true intention / purpose of these functions is to:
    - either tell Ghost CLI when Ghost has successfully booted (e.g. is ready to serve requests)
    - or tell Ghost CLI when the server failed to boot, and report the error so that Ghost CLI can communicate it to the user
- therefore, I've refactored the old functions into 1 function to make it clearer they do the same job, but with 2 different states
- also added some tests :D
2020-08-09 17:25:15 +01:00
..
adapters Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
api Added JSON Schema validations to Webhooks Admin API v3 2020-07-17 17:37:14 +12:00
apps 🐛 Fixed private blogging exposing 404 and robots (#11922) 2020-06-16 11:42:32 +01:00
data Added support for ON DELETE CASCADE to the schema (#12105) 2020-08-05 13:20:30 +02:00
helpers Updated tests that were stubbing old ghost_head/ghost_foot settings keys 2020-07-01 17:58:12 +01:00
lib Replaced removed nock method 2020-07-21 20:25:06 +01:00
models Fixed settings unit tests 2020-07-22 22:12:00 +01:00
server Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00
services 🐛 Fixed Stripe webhooks for subdirectory setups 2020-07-10 17:43:46 +02:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00