0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit/helpers
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
..
test_tpl Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
asset_spec.js
author_spec.js
authors_spec.js
body_class_spec.js
cancel_link_spec.js
concat_spec.js
content_spec.js Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
date_spec.js Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
encode_spec.js
excerpt_spec.js
facebook_url_spec.js
foreach_spec.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get_spec.js
ghost_foot_spec.js
ghost_head_spec.js Fixed accent color on pages with no context 2021-03-04 10:56:53 +00:00
has_spec.js
img_url_spec.js
is_spec.js
lang_spec.js Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
link_class_spec.js
link_spec.js
meta_description_spec.js
meta_title_spec.js
navigation_spec.js
next_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
page_url_spec.js
pagination_spec.js
plural_spec.js
post_class_spec.js
prev_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
price_spec.js Updated price helper to output well formatted prices 2021-02-25 13:01:24 +05:30
raw_spec.js
reading_time_spec.js
t_spec.js
tags_spec.js
title_spec.js
twitter_url_spec.js
url_spec.js