fixed hasFlag test (#1076)

Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
Asier Isayas 2021-09-14 12:28:33 -04:00 committed by GitHub
parent d10f3c69f1
commit 8866976bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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);
});
});

View File

@ -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;
};