File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -108,4 +108,32 @@ describe("Default Options", () => {
108108 doesNotThrow ( ( ) => opts . setValue ( "searchGroupBoosts" , { Enum : 5 } ) ) ;
109109 } ) ;
110110 } ) ;
111+
112+ describe ( "headerLinks" , ( ) => {
113+ it ( "Should disallow non-objects" , ( ) => {
114+ throws ( ( ) => opts . setValue ( "navigationLinks" , null as never ) ) ;
115+ } ) ;
116+
117+ it ( "Should disallow non-strings" , ( ) => {
118+ throws ( ( ) =>
119+ opts . setValue ( "navigationLinks" , {
120+ "Home" : true as any as string ,
121+ } )
122+ ) ;
123+ } ) ;
124+ } ) ;
125+
126+ describe ( "sidebarLinks" , ( ) => {
127+ it ( "Should disallow non-objects" , ( ) => {
128+ throws ( ( ) => opts . setValue ( "sidebarLinks" , null as never ) ) ;
129+ } ) ;
130+
131+ it ( "Should disallow non-strings" , ( ) => {
132+ throws ( ( ) =>
133+ opts . setValue ( "sidebarLinks" , {
134+ "Home" : true as any as string ,
135+ } )
136+ ) ;
137+ } ) ;
138+ } ) ;
111139} ) ;
You can’t perform that action at this time.
0 commit comments