Skip to content

Commit

Permalink
test: fix test image timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Sep 20, 2023
1 parent 2d1c468 commit fd07ca5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __test__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { Resvg, renderAsync } from '../index'
import { jimpToRgbaPixels } from './helper'

test('Use href to load a JPG image without alpha', async (t) => {
const imgUrl = 'https://himg.bdimg.com/sys/portrait/hotitem/wildkid/46'
const imgUrl = 'https://wd.imgix.net/image/kheDArv5csY6rvQUJDbWRscckLr1/De5peVXJZz3uSEmmVeYJ.png?w=500'
const svg = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<image href="${imgUrl}" width="300" height="300"/>
<image href="${imgUrl}" width="500" height="250"/>
</svg>`
const resvg = new Resvg(svg, {
font: {
Expand Down
4 changes: 2 additions & 2 deletions __test__/wasm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ test.before(async () => {
})

test('Use href to load a JPG image without alpha', async (t) => {
const imgUrl = 'https://himg.bdimg.com/sys/portrait/hotitem/wildkid/46'
const imgUrl = 'https://wd.imgix.net/image/kheDArv5csY6rvQUJDbWRscckLr1/De5peVXJZz3uSEmmVeYJ.png?w=500'
const svg = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<image href="${imgUrl}" width="300" height="300"/>
<image href="${imgUrl}" width="500" height="250"/>
</svg>`
const resvg = new Resvg(svg)
const resolved = await Promise.all(
Expand Down

0 comments on commit fd07ca5

Please sign in to comment.