mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
null checks
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
6fa4adb67a
commit
845efa7fc0
@ -934,8 +934,10 @@ test('Should not recursively set off timers on events', async () => {
|
||||
});
|
||||
|
||||
test('should return all features when specified', async () => {
|
||||
if (app.config.experimental != null) {
|
||||
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
||||
app.config.experimental.flags.proxyReturnAllToggles = true;
|
||||
}
|
||||
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
||||
await createFeatureToggle({
|
||||
name: 'enabledFeature1',
|
||||
@ -1005,8 +1007,10 @@ test('should return all features when specified', async () => {
|
||||
});
|
||||
|
||||
test('should return all features when both feature flags are set only', async () => {
|
||||
if (app.config.experimental != null) {
|
||||
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
||||
app.config.experimental.flags.proxyReturnAllToggles = false;
|
||||
}
|
||||
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
||||
await createFeatureToggle({
|
||||
name: 'enabledFeature1',
|
||||
|
Loading…
Reference in New Issue
Block a user