@@ -152,13 +152,13 @@ describe("orderedListGutterStyle", () => {
152152 expect ( orderedListGutterStyle ( 9 , undefined ) ) . toBeUndefined ( ) ;
153153 } ) ;
154154
155- it ( "leaves the default gutter alone for two-digit lists" , ( ) => {
156- expect ( orderedListGutterStyle ( 99 , undefined ) ) . toBeUndefined ( ) ;
155+ it ( "widens the gutter for two-digit lists" , ( ) => {
156+ expect ( orderedListGutterStyle ( 99 , undefined ) ) . toEqual ( { "--list-gutter" : "3ch" } ) ;
157157 } ) ;
158158
159- it ( "leaves the default gutter alone for a two-digit list that starts above 1" , ( ) => {
159+ it ( "widens the gutter for a two-digit list that starts above 1" , ( ) => {
160160 // start=50 + 49 items => last marker is "98", still two digits.
161- expect ( orderedListGutterStyle ( 49 , 50 ) ) . toBeUndefined ( ) ;
161+ expect ( orderedListGutterStyle ( 49 , 50 ) ) . toEqual ( { "--list-gutter" : "3ch" } ) ;
162162 } ) ;
163163
164164 it ( "widens the gutter once the last marker reaches three digits" , ( ) => {
@@ -179,7 +179,7 @@ describe("orderedListGutterStyle", () => {
179179 it ( "uses the widest marker and includes a negative start's minus sign" , ( ) => {
180180 expect ( orderedListGutterStyle ( 1001 , - 1000 ) ) . toEqual ( { "--list-gutter" : "6ch" } ) ;
181181 expect ( orderedListGutterStyle ( 3 , - 15 ) ) . toEqual ( { "--list-gutter" : "4ch" } ) ;
182- expect ( orderedListGutterStyle ( 3 , - 5 ) ) . toBeUndefined ( ) ;
182+ expect ( orderedListGutterStyle ( 3 , - 5 ) ) . toEqual ( { "--list-gutter" : "3ch" } ) ;
183183 } ) ;
184184
185185 it ( "treats a missing/zero item count as a single item" , ( ) => {
0 commit comments