mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-27 00:19:39 +01:00
test: device count without experimental env key (#8771)
This commit is contained in:
parent
9d5fceb5bf
commit
2ffff25a4a
@ -1,5 +1,5 @@
|
|||||||
import { PayloadType, type Variant } from 'unleash-client';
|
import { PayloadType, type Variant } from 'unleash-client';
|
||||||
import { parseEnvVarBoolean, parseEnvVarNumber } from '../util';
|
import { parseEnvVarBoolean } from '../util';
|
||||||
import { getDefaultVariant } from 'unleash-client/lib/variant';
|
import { getDefaultVariant } from 'unleash-client/lib/variant';
|
||||||
|
|
||||||
export type IFlagKey =
|
export type IFlagKey =
|
||||||
@ -289,20 +289,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN,
|
process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
showUserDeviceCount: {
|
|
||||||
name: 'showUserDeviceCount',
|
|
||||||
enabled: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_SHOW_USER_DEVICE_COUNT,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
payload: {
|
|
||||||
type: PayloadType.NUMBER,
|
|
||||||
value: `${parseEnvVarNumber(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_WARN_ABOVE_SESSION_COUNT,
|
|
||||||
0,
|
|
||||||
)}`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user