@@ -203,12 +203,12 @@ describe("font-face", () => {
203
203
it ( "should match exact weight when 500" , ( ) => {
204
204
const fontFaces = buildFontFaceMap ( [ w300 , w400 , w500 ] ) ;
205
205
206
- const result = resolveFontFace ( fontFaces , [ w400 ] ) ;
206
+ const result = resolveFontFace ( fontFaces , [ w500 ] ) ;
207
207
208
- expect ( result ) . toEqual ( normalizeFontFace ( w400 ) ) ;
208
+ expect ( result ) . toEqual ( normalizeFontFace ( w500 ) ) ;
209
209
} ) ;
210
210
211
- it ( "should try font-weight 500 first when desired weight is 400 " , ( ) => {
211
+ it ( "should try font-weight 500 first when desired weight 400 is not available " , ( ) => {
212
212
const fontFaces = buildFontFaceMap ( [ w300 , w500 ] ) ;
213
213
214
214
const result = resolveFontFace ( fontFaces , [ w400 ] ) ;
@@ -232,7 +232,7 @@ describe("font-face", () => {
232
232
expect ( result ) . toEqual ( normalizeFontFace ( w900 ) ) ;
233
233
} ) ;
234
234
235
- it ( "should try font-weight 400 first when desired weight is 500 " , ( ) => {
235
+ it ( "should try font-weight 400 first when desired weight 500 is not available " , ( ) => {
236
236
const fontFaces = buildFontFaceMap ( [ w600 , w400 ] ) ;
237
237
238
238
const result = resolveFontFace ( fontFaces , [ w500 ] ) ;
@@ -248,7 +248,7 @@ describe("font-face", () => {
248
248
expect ( result ) . toEqual ( normalizeFontFace ( w900 ) ) ;
249
249
} ) ;
250
250
251
- it ( "should pick larger font-weight when no smaller is available" , ( ) => {
251
+ it ( "should pick smaller font-weight when no larger is available" , ( ) => {
252
252
const fontFaces = buildFontFaceMap ( [ w100 ] ) ;
253
253
254
254
const result = resolveFontFace ( fontFaces , [ w500 ] ) ;
0 commit comments