Skip to content

Commit c810028

Browse files
committed
Fix previous commit
1 parent c4b88c1 commit c810028

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/FontPicker.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { createCanvas, GlobalFonts, type SKRSContext2D } from '@napi-rs/canvas'
33
import FontPicker, { truncateText, getTextColor } from '$lib/utils/FontPicker'
44

55
GlobalFonts.registerFromPath(
6-
'Quicksand',
7-
'static/Quicksand-VariableFont_wght.ttf'
6+
'static/Quicksand-VariableFont_wght.ttf',
7+
'Quicksand'
88
)
9-
console.log(GlobalFonts.families)
109

1110
describe('FontPicker', () => {
1211
let fontPicker: FontPicker
@@ -29,7 +28,7 @@ describe('FontPicker', () => {
2928
const font = fontPicker.getFont(
3029
context, texts, wheelRadius, hubRadius, smallestAngle
3130
)
32-
expect(font).toBe('500 52px Quicksand')
31+
expect(font).toBe('500 56px Quicksand')
3332
})
3433

3534
it('should get the cached result', () => {

0 commit comments

Comments
 (0)