Skip to content

Commit d5c2e29

Browse files
Fix flags test
1 parent 82bb9f6 commit d5c2e29

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/flags.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import { flagsForParams } from "./flags";
22

33
describe("flags", () => {
4-
it("enables nothing in production except prototypeWarning flag", () => {
4+
it("enables correct production flags", () => {
55
const params = new URLSearchParams([]);
66

77
const flags = flagsForParams("production", params);
88

99
expect(
1010
Object.entries(flags).every(
11-
([flag, status]) => !status || (flag === "prototypeWarning" && status)
11+
([flag, status]) =>
12+
!status ||
13+
(flag === "prototypeWarning" && status) ||
14+
(flag === "preReleaseNotice" && status)
1215
)
1316
).toEqual(true);
1417
});

0 commit comments

Comments
 (0)