Skip to content

Commit 4a0a986

Browse files
committed
update
1 parent 7f9c234 commit 4a0a986

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Loading

test/backdrop-filter.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises'
44

55
import { parseBackdropFilter } from '../src/parser/backdrop-filter.js'
66
import satori from '../src/index.js'
7-
import { toImage } from './utils.js'
7+
import { toImageWithSharp } from './utils.js'
88

99
const inheritedStyle = {
1010
fontSize: 16,
@@ -245,6 +245,6 @@ describe('backdrop-filter', () => {
245245
{ width: 1200, height: 630, fonts, pointScaleFactor: 2 }
246246
)
247247

248-
expect(toImage(svg, 1200)).toMatchImageSnapshot()
248+
expect(await toImageWithSharp(svg, 1200)).toMatchImageSnapshot()
249249
})
250250
})

0 commit comments

Comments
 (0)