Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Bornö committed Oct 25, 2022
1 parent 023f3d2 commit 2f0cafb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/font-optimization/test/index.test.js
Expand Up @@ -332,14 +332,14 @@ describe('Font Optimization', () => {
)
expect(inlineStyle.length).toBe(1)
expect(inlineStyle.html()).toContain(
'@font-face{font-family:"Roboto Fallback";ascent-override:91.03%;descent-override:23.95%;line-gap-override:0.00%;size-adjust:101.92%;src:local("Arial")}'
'@font-face{font-family:"Roboto Fallback";ascent-override:99.23%;descent-override:26.11%;line-gap-override:0.00%;size-adjust:93.49%;src:local("Arial")}'
)
expect(inlineStyleMultiple.length).toBe(1)
expect(inlineStyleMultiple.html()).toContain(
'@font-face{font-family:"Libre Baskerville Fallback";ascent-override:75.85%;descent-override:21.11%;line-gap-override:0.00%;size-adjust:127.88%;src:local("Times New Roman")}'
'@font-face{font-family:"Libre Baskerville Fallback";ascent-override:83.98%;descent-override:23.37%;line-gap-override:0.00%;size-adjust:115.51%;src:local("Times New Roman")}@font-face{font-family:"Open Sans Fallback";ascent-override:108.98%;descent-override:29.87%;line-gap-override:0.00%;size-adjust:98.08%;src:local("Arial")}'
)
expect(inlineStyleMultiple.html()).toContain(
'@font-face{font-family:"Open Sans Fallback";ascent-override:100.16%;descent-override:27.45%;line-gap-override:0.00%;size-adjust:106.71%;src:local("Arial")}'
'@font-face{font-family:"Open Sans Fallback";ascent-override:108.98%;descent-override:29.87%;line-gap-override:0.00%;size-adjust:98.08%;src:local("Arial")}'
)
})
})
Expand Down

0 comments on commit 2f0cafb

Please sign in to comment.