Skip to content

Commit 8ac15c4

Browse files
committed
test: fix fs map decoding type
1 parent 94e91f4 commit 8ac15c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test3-svg-url.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ test("create svg url using fs map", () => {
3232
const fsMapParam = parsed.searchParams.get("fs_map")
3333
expect(fsMapParam).not.toBeNull()
3434

35+
const encodedFsMap = Buffer.from(fsMapParam!, "base64")
3536
const decodedFsMap = JSON.parse(
36-
strFromU8(gunzipSync(Buffer.from(fsMapParam!, "base64"))),
37+
strFromU8(gunzipSync(Uint8Array.from(encodedFsMap))),
3738
)
3839

3940
expect(decodedFsMap).toEqual({

0 commit comments

Comments
 (0)