@@ -47,13 +47,7 @@ describe("applyDefaultCollectionMigration", () => {
47
47
const hiddenStatuses = result . data . catalog . collections . map (
48
48
( c : IHubCollection ) => c . displayConfig ?. hidden
49
49
) ;
50
- expect ( hiddenStatuses ) . toEqual ( [
51
- undefined ,
52
- true ,
53
- undefined ,
54
- undefined ,
55
- undefined ,
56
- ] ) ;
50
+ expect ( hiddenStatuses ) . toEqual ( [ false , true , false , false , false ] ) ;
57
51
} ) ;
58
52
59
53
it ( "Reorders, re-labels, and hides default collections when search categories are configured" , ( ) => {
@@ -97,7 +91,7 @@ describe("applyDefaultCollectionMigration", () => {
97
91
const hiddenStatuses = result . data . catalog . collections . map (
98
92
( c : IHubCollection ) => c . displayConfig . hidden
99
93
) ;
100
- expect ( hiddenStatuses ) . toEqual ( [ undefined , undefined , true , false , false ] ) ;
94
+ expect ( hiddenStatuses ) . toEqual ( [ false , false , true , false , false ] ) ;
101
95
} ) ;
102
96
103
97
it ( "Handles when a site has the 'initiatives' search category saved" , ( ) => {
@@ -123,7 +117,7 @@ describe("applyDefaultCollectionMigration", () => {
123
117
const hiddenStatuses = result . data . catalog . collections . map (
124
118
( c : IHubCollection ) => c . displayConfig . hidden
125
119
) ;
126
- expect ( hiddenStatuses ) . toEqual ( [ undefined , true ] ) ;
120
+ expect ( hiddenStatuses ) . toEqual ( [ false , true ] ) ;
127
121
} ) ;
128
122
129
123
it ( "Omits unsupported search categories, like an explicit 'all' or events" , ( ) => {
@@ -152,6 +146,6 @@ describe("applyDefaultCollectionMigration", () => {
152
146
const hiddenStatuses = result . data . catalog . collections . map (
153
147
( c : IHubCollection ) => c . displayConfig . hidden
154
148
) ;
155
- expect ( hiddenStatuses ) . toEqual ( [ undefined ] ) ;
149
+ expect ( hiddenStatuses ) . toEqual ( [ false ] ) ;
156
150
} ) ;
157
151
} ) ;
0 commit comments