Ghost/test
Matt Hanley b4140d4310
Updated default format for date helper to locale-based date string (#12733)
refs https://github.com/TryGhost/Casper/pull/741
closes https://github.com/TryGhost/Team/issues/524

- Use a local-based format as the default format as suggested in https://github.com/TryGhost/Casper/pull/741
- reworked the helper to be easier to read and follow the different use cases
- introduced setting and resetting locale in tests via settingsCache and themei18n
- updated tests to cover more cases e.g. passing a date, this.published_at and no date
- added validation for user inputted dates because they could literally be anything

Co-authored-by: Hannah Wolfe <erisds@gmail.com>
2021-03-05 13:35:31 +00:00
..
api-acceptance Excluded member events tables from site exports 2021-03-05 11:41:00 +00:00
frontend-acceptance Fixed status code for unauthenticated requests 2021-03-01 16:19:28 +00:00
regression Fixed fixture creation order in webhooks tests 2021-03-04 10:56:58 +01:00
unit Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
utils Fixed data generator crating webhooks linked to intergrations 2021-03-04 10:56:58 +01:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00