File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { mkdir, writeFile } from "node:fs/promises"
44import { spawn } from "node:child_process"
55
66const EXAMPLE_TEST = `import { expect, test } from "bun:test"
7- import "bun-match-svg"
87
98 const testSvg = \`<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
109 <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
@@ -13,7 +12,7 @@ const EXAMPLE_TEST = `import { expect, test } from "bun:test"
1312 test("svg snapshot example", async () => {
1413 // First run will create the snapshot
1514 // Subsequent runs will compare against the saved snapshot
16- await expect(testSvg).toMatchSvgSnapshot(import.meta.path, "example" )
15+ await expect(testSvg).toMatchSvgSnapshot(import.meta.path)
1716 })
1817 `
1918
You can’t perform that action at this time.
0 commit comments