mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-18 02:07:04 +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(singleFlagValue, desiredFlag)).toBe(true);
|
||||||
expect(hasFlag(multipleFlagValues, desiredFlag)).toBe(true);
|
expect(hasFlag(multipleFlagValues, desiredFlag)).toBe(true);
|
||||||
expect(hasFlag(differentFlagValue, desiredFlag)).toBe(false);
|
expect(hasFlag(differentFlagValue, desiredFlag)).toBe(false);
|
||||||
expect(hasFlag(multipleFlagValues, undefined)).toBe(false);
|
expect(hasFlag(multipleFlagValues, undefined as unknown as string)).toBe(false);
|
||||||
expect(hasFlag(undefined, desiredFlag)).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 pr?: string;
|
||||||
readonly showMinRUSurvey: boolean;
|
readonly showMinRUSurvey: boolean;
|
||||||
readonly ttl90Days: boolean;
|
readonly ttl90Days: boolean;
|
||||||
readonly mongoProxyEndpoint: string;
|
readonly mongoProxyEndpoint?: string;
|
||||||
readonly mongoProxyAPIs: string;
|
readonly mongoProxyAPIs?: string;
|
||||||
readonly notebooksTemporarilyDown: boolean;
|
readonly notebooksTemporarilyDown: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user