Function
variableFace
(
overrides: FaceOverrides & { subset: string },
)
Source from the content-addressed store, hash-verified
| 28 | }); |
| 29 | |
| 30 | const variableFace = ( |
| 31 | overrides: FaceOverrides & { subset: string }, |
| 32 | ): FontFace => ({ |
| 33 | weight: '100 900', |
| 34 | style: 'normal', |
| 35 | isVariable: true, |
| 36 | unicodeRange: '', |
| 37 | sources: [ |
| 38 | { |
| 39 | format: 'woff2', |
| 40 | filename: overrides.filename ?? 'fixture.woff2', |
| 41 | }, |
| 42 | ], |
| 43 | axisKey: 'wght', |
| 44 | stretch: null, |
| 45 | sliceIndex: 0, |
| 46 | ...overrides, |
| 47 | }); |
| 48 | |
| 49 | describe('css planner', () => { |
| 50 | it('assigns static faces to weight and subset assets', () => { |
Tested by
no test coverage detected