Skip to content

Commit 8204a5c

Browse files
committed
fix some copy paste errors in test cases for fontfaces
1 parent 64127ef commit 8204a5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/specs/fontfaces.spec.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ describe("font-face", () => {
203203
it("should match exact weight when 500", () => {
204204
const fontFaces = buildFontFaceMap([w300, w400, w500]);
205205

206-
const result = resolveFontFace(fontFaces, [w400]);
206+
const result = resolveFontFace(fontFaces, [w500]);
207207

208-
expect(result).toEqual(normalizeFontFace(w400));
208+
expect(result).toEqual(normalizeFontFace(w500));
209209
});
210210

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", () => {
212212
const fontFaces = buildFontFaceMap([w300, w500]);
213213

214214
const result = resolveFontFace(fontFaces, [w400]);
@@ -232,7 +232,7 @@ describe("font-face", () => {
232232
expect(result).toEqual(normalizeFontFace(w900));
233233
});
234234

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", () => {
236236
const fontFaces = buildFontFaceMap([w600, w400]);
237237

238238
const result = resolveFontFace(fontFaces, [w500]);
@@ -248,7 +248,7 @@ describe("font-face", () => {
248248
expect(result).toEqual(normalizeFontFace(w900));
249249
});
250250

251-
it("should pick larger font-weight when no smaller is available", () => {
251+
it("should pick smaller font-weight when no larger is available", () => {
252252
const fontFaces = buildFontFaceMap([w100]);
253253

254254
const result = resolveFontFace(fontFaces, [w500]);

0 commit comments

Comments
 (0)