We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82bb9f6 commit d5c2e29Copy full SHA for d5c2e29
src/flags.test.ts
@@ -1,14 +1,17 @@
1
import { flagsForParams } from "./flags";
2
3
describe("flags", () => {
4
- it("enables nothing in production except prototypeWarning flag", () => {
+ it("enables correct production flags", () => {
5
const params = new URLSearchParams([]);
6
7
const flags = flagsForParams("production", params);
8
9
expect(
10
Object.entries(flags).every(
11
- ([flag, status]) => !status || (flag === "prototypeWarning" && status)
+ ([flag, status]) =>
12
+ !status ||
13
+ (flag === "prototypeWarning" && status) ||
14
+ (flag === "preReleaseNotice" && status)
15
)
16
).toEqual(true);
17
});
0 commit comments