0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit/frontend
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
..
apps Moved routing helpers to rendering service 2022-04-05 20:12:20 +01:00
helpers Fixed mockLabs disabling all other flags (#14621) 2022-04-28 10:55:20 +02:00
meta Removed unnecessary use of rewire 2022-03-24 19:32:06 +00:00
services Fixed location of url service unit tests 2022-04-06 13:05:41 +01:00
web/middleware Replaced white/black list terminology 2022-04-19 11:19:59 +01:00