File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ describe("flags", () => {
14
14
expect ( flags . dndDebug ) . toEqual ( false ) ;
15
15
} ) ;
16
16
17
- it ( "enables nothing in production" , ( ) => {
17
+ it ( "only enables PWA in production" , ( ) => {
18
18
const params = new URLSearchParams ( [ ] ) ;
19
19
20
20
const flags = flagsForParams ( "PRODUCTION" , params ) ;
21
21
22
- expect ( Object . values ( flags ) . every ( ( x ) => ! x ) ) . toEqual ( true ) ;
22
+ expect ( flags . pwa ) . toBe ( true ) ;
23
+ const { pwa, ...filteredFlags } = flags ;
24
+
25
+ expect ( Object . values ( filteredFlags ) . every ( ( x ) => ! x ) ) . toEqual ( true ) ;
23
26
} ) ;
24
27
25
28
it ( "enable specific flag" , ( ) => {
@@ -29,7 +32,7 @@ describe("flags", () => {
29
32
30
33
expect (
31
34
Object . entries ( flags ) . every (
32
- ( [ flag , status ] ) => ( flag === "noWelcome" ) === status
35
+ ( [ flag , status ] ) => ( flag === "noWelcome" || flag === "pwa" ) === status
33
36
)
34
37
) . toEqual ( true ) ;
35
38
} ) ;
You can’t perform that action at this time.
0 commit comments