@@ -18,7 +18,6 @@ function index(input: Partial<Parameters<typeof settingsSearchIndex>[0]> = {}) {
1818 servers,
1919 desktop : false ,
2020 browser : false ,
21- dev : false ,
2221 mobile : false ,
2322 translate : ( key ) => strings [ key ] ,
2423 ...input ,
@@ -49,17 +48,17 @@ describe("settings search index", () => {
4948 expect ( rankSettings ( "font" , items , root ) ) . toHaveLength ( 3 )
5049 } )
5150
52- test ( "only advertises settings supported by this platform and channel " , ( ) => {
51+ test ( "only advertises settings supported by this platform" , ( ) => {
5352 const targets = ( input : Parameters < typeof index > [ 0 ] ) => index ( input ) . map ( ( item ) => item . view . target )
5453 expect ( targets ( { } ) ) . not . toContain ( "settings-pinch-zoom" )
5554 expect ( targets ( { } ) ) . not . toContain ( "settings-experimental-browser" )
5655 expect ( targets ( { } ) ) . not . toContain ( "settings-show-project-icon" )
5756 expect ( targets ( { } ) ) . toContain ( "settings-tab-layout" )
5857 expect ( targets ( { desktop : true } ) ) . toContain ( "settings-pinch-zoom" )
5958 expect ( targets ( { browser : true } ) ) . not . toContain ( "settings-experimental-browser" )
60- expect ( targets ( { dev : true } ) ) . not . toContain ( "settings-show-project-icon" )
61- expect ( targets ( { dev : true } ) ) . not . toContain ( "settings-mobile-titlebar-bottom" )
62- expect ( targets ( { dev : true , mobile : true } ) ) . toContain ( "settings-mobile-titlebar-bottom" )
59+ expect ( targets ( { } ) ) . not . toContain ( "settings-show-project-icon" )
60+ expect ( targets ( { } ) ) . not . toContain ( "settings-mobile-titlebar-bottom" )
61+ expect ( targets ( { mobile : true } ) ) . toContain ( "settings-mobile-titlebar-bottom" )
6362 } )
6463
6564 test ( "uses section labels and stable identities independent of translated text" , ( ) => {
0 commit comments