0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/test/unit/helpers
Hannah Wolfe 38c7f42baf
Improved match helper tests (#13314)
closes: CORE-32

- The match helper is a very logical helper, designed to support many many type of comparison
- The existing test pattern had gotten long and unweildy already and I'd barely scratched the surface
- Introduce a new pattern, that allows for very quickly and easily describing template strings and what their evaluation should be
- This quickly highlights how many broken cases there are right now!

Notes:
- I could have condensed the pattern further with test groups and iterating over to create describe blocks
- I feel the current implementation is the right balance between condensed and legible to make this maintainable
- I could also have used the same pattern for the block helper, but at that point I felt it more important that the logic I was testing was clear, rather than condensed
2021-09-16 17:11:10 +01:00
..
test_tpl Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
asset.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
author.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
authors.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
body_class.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
cancel_link.test.js Moved labs utlity to shared 2021-07-08 09:05:41 +01:00
concat.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
content.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
date.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
encode.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
excerpt.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
facebook_url.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
foreach.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
get.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
ghost_foot.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
ghost_head.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
has.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
img_url.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
is.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
lang.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
link.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
link_class.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
match.test.js Improved match helper tests (#13314) 2021-09-16 17:11:10 +01:00
meta_description.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
meta_title.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
navigation.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
next_post.test.js Bumped default API version export to be canary/v4 2021-07-07 18:44:21 +04:00
page_url.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
pagination.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
plural.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
post_class.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
prev_post.test.js Bumped default API version export to be canary/v4 2021-07-07 18:44:21 +04:00
price.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
raw.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
reading_time.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
t.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
tags.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
title.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
twitter_url.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
url.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00