Ghost/test/unit/frontend/helpers
Hannah Wolfe a703185497
Fixed mockLabs disabling all other flags (#14621)
refs TryGhost/Team#1566

- Mocking a labs flag (regardless of enabled/disabled) currently has a side effect of setting any other flag to undefined.
- This meant in a test where we set a flag e.g. members-importer where we set multipleProducts, multipleNewsletters is always disabled
- This fix preserves the default state of all labs flags that are not mocked so that labs behaves how we expect
- Removed usage of GA flags in tests
- Removed tests that had GA flags disabled

Co-authored-by: Simon Backx <simon@ghost.org>
2022-04-28 10:55:20 +02:00
..
test_tpl Updated content cta helper to use new tiers helper 2022-03-04 18:22:59 +05:30
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 Renamed rendering service to handlebars 2022-04-05 20:10:33 +01: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 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
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 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
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
tiers.test.js Fixed mockLabs disabling all other flags (#14621) 2022-04-28 10:55:20 +02: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