mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +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 () => {
|
test('should return all features when specified', async () => {
|
||||||
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
if (app.config.experimental != null) {
|
||||||
app.config.experimental.flags.proxyReturnAllToggles = true;
|
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
||||||
|
app.config.experimental.flags.proxyReturnAllToggles = true;
|
||||||
|
}
|
||||||
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
||||||
await createFeatureToggle({
|
await createFeatureToggle({
|
||||||
name: 'enabledFeature1',
|
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 () => {
|
test('should return all features when both feature flags are set only', async () => {
|
||||||
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
if (app.config.experimental != null) {
|
||||||
app.config.experimental.flags.proxyReturnAllToggles = false;
|
app.config.experimental.flags.proxyReturnAllTogglesKillSwitch = true;
|
||||||
|
app.config.experimental.flags.proxyReturnAllToggles = false;
|
||||||
|
}
|
||||||
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
const frontendToken = await createApiToken(ApiTokenType.FRONTEND);
|
||||||
await createFeatureToggle({
|
await createFeatureToggle({
|
||||||
name: 'enabledFeature1',
|
name: 'enabledFeature1',
|
||||||
|
Loading…
Reference in New Issue
Block a user