Ghost/test/unit/frontend/helpers
Simon Backx e97abeceb5
Added >, <, >=, and <= operators to match helper (#14215)
refs https://github.com/TryGhost/Team/issues/1386

- The current match handler supports normal (in)equality operators, but no numeric comparisons (<, >, <=, >=)
- A use case for these new operators is to show the latest post in a separate way from other posts

Includes unit tests to check the new behaviour.
Run via `yarn test test/unit/frontend/helpers/match.test.js`
2022-03-03 15:43:47 +01:00
..
test_tpl Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
asset.test.js 🐛 Fixed broken assets for theme/design preview 2021-11-03 11:20:04 +01:00
author.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
authors.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
body_class.test.js Cleaned up weird refs to versions in tests 2022-01-21 15:10:03 +00:00
cancel_link.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
concat.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
content.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
date.test.js Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
encode.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
excerpt.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
facebook_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
foreach.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
get.test.js Updated misc unversioned tests to run on canary 2022-01-21 15:11:48 +00:00
ghost_foot.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
ghost_head.test.js Updated misc unversioned tests to run on canary 2022-01-21 15:11:48 +00:00
has.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
img_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
is.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
lang.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
link_class.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
link.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
match.test.js Added >, <, >=, and <= operators to match helper (#14215) 2022-03-03 15:43:47 +01:00
meta_description.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
meta_title.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
navigation.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
next_post.test.js Updated tests to handle visibility tier 2022-02-01 11:13:51 +05:30
page_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
pagination.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
plural.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
post_class.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
prev_post.test.js Updated tests to handle visibility tier 2022-02-01 11:13:51 +05:30
price.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
raw.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
reading_time.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
t.test.js Moved locale testing out of casper fixture (#13850) 2021-12-06 15:11:54 +00:00
tags.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
title.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
twitter_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
url.test.js Fixed the tests from the previous commit 2021-12-02 10:48:46 +01:00