From 8204a5cb75f134f2a51f6d479306f186cc00d903 Mon Sep 17 00:00:00 2001 From: Johan Suleiko Allansson Date: Wed, 13 Jan 2021 09:39:15 +0100 Subject: [PATCH] fix some copy paste errors in test cases for fontfaces --- test/specs/fontfaces.spec.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/specs/fontfaces.spec.mjs b/test/specs/fontfaces.spec.mjs index 5dc185671..a92b54385 100644 --- a/test/specs/fontfaces.spec.mjs +++ b/test/specs/fontfaces.spec.mjs @@ -203,12 +203,12 @@ describe("font-face", () => { it("should match exact weight when 500", () => { const fontFaces = buildFontFaceMap([w300, w400, w500]); - const result = resolveFontFace(fontFaces, [w400]); + const result = resolveFontFace(fontFaces, [w500]); - expect(result).toEqual(normalizeFontFace(w400)); + expect(result).toEqual(normalizeFontFace(w500)); }); - it("should try font-weight 500 first when desired weight is 400", () => { + it("should try font-weight 500 first when desired weight 400 is not available", () => { const fontFaces = buildFontFaceMap([w300, w500]); const result = resolveFontFace(fontFaces, [w400]); @@ -232,7 +232,7 @@ describe("font-face", () => { expect(result).toEqual(normalizeFontFace(w900)); }); - it("should try font-weight 400 first when desired weight is 500", () => { + it("should try font-weight 400 first when desired weight 500 is not available", () => { const fontFaces = buildFontFaceMap([w600, w400]); const result = resolveFontFace(fontFaces, [w500]); @@ -248,7 +248,7 @@ describe("font-face", () => { expect(result).toEqual(normalizeFontFace(w900)); }); - it("should pick larger font-weight when no smaller is available", () => { + it("should pick smaller font-weight when no larger is available", () => { const fontFaces = buildFontFaceMap([w100]); const result = resolveFontFace(fontFaces, [w500]);