Ghost/test/unit/helpers
Hannah Wolfe ba587ba882
Fixed logic bugs in match helper (#13315)
closes: CORE-33

Two bugs:
- lodash isEmpty and handlebars util isEmpty are not the same
- I literally had the truthy and falsy cases the wrong way around 🙈

Notes:
- I have, for now, copied the isEmpty util from handlebars. It's so small it doesn't seem worth trying to require the util right now, although in future it'd be nice if that was easier to do
- Adding the management for the conditional being a SafeString allows the match helper to be a subexpression of itself, I can see this pattern being useful later in combo with the any and all helpers
2021-09-17 09:47: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_class.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
match.test.js Fixed logic bugs in match helper (#13315) 2021-09-17 09:47: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