mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
fixed hasFlag test (#1076)
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
parent
d10f3c69f1
commit
8866976bb4
@ -31,7 +31,8 @@ describe("hasFlag", () => {
|
||||
expect(hasFlag(singleFlagValue, desiredFlag)).toBe(true);
|
||||
expect(hasFlag(multipleFlagValues, desiredFlag)).toBe(true);
|
||||
expect(hasFlag(differentFlagValue, desiredFlag)).toBe(false);
|
||||
expect(hasFlag(multipleFlagValues, undefined)).toBe(false);
|
||||
expect(hasFlag(undefined, desiredFlag)).toBe(false);
|
||||
expect(hasFlag(multipleFlagValues, undefined as unknown as string)).toBe(false);
|
||||
expect(hasFlag(undefined as unknown as string, desiredFlag)).toBe(false);
|
||||
expect(hasFlag(undefined as unknown as string, undefined as unknown as string)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
@ -29,8 +29,8 @@ export type Features = {
|
||||
readonly pr?: string;
|
||||
readonly showMinRUSurvey: boolean;
|
||||
readonly ttl90Days: boolean;
|
||||
readonly mongoProxyEndpoint: string;
|
||||
readonly mongoProxyAPIs: string;
|
||||
readonly mongoProxyEndpoint?: string;
|
||||
readonly mongoProxyAPIs?: string;
|
||||
readonly notebooksTemporarilyDown: boolean;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user