Skip to content

Commit 75edca1

Browse files
authored
fix: improve init command (#7)
1 parent d78aa63 commit 75edca1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { mkdir, writeFile } from "node:fs/promises"
44
import { spawn } from "node:child_process"
55

66
const 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

0 commit comments

Comments
 (0)