bun-match-svg 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.ts +1 -2
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { mkdir, writeFile } from "node:fs/promises"
|
|
|
4
4
|
import { spawn } from "node:child_process"
|
|
5
5
|
|
|
6
6
|
const EXAMPLE_TEST = `import { expect, test } from "bun:test"
|
|
7
|
-
import "bun-match-svg"
|
|
8
7
|
|
|
9
8
|
const testSvg = \`<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
|
|
10
9
|
<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"
|
|
|
13
12
|
test("svg snapshot example", async () => {
|
|
14
13
|
// First run will create the snapshot
|
|
15
14
|
// Subsequent runs will compare against the saved snapshot
|
|
16
|
-
await expect(testSvg).toMatchSvgSnapshot(import.meta.path
|
|
15
|
+
await expect(testSvg).toMatchSvgSnapshot(import.meta.path)
|
|
17
16
|
})
|
|
18
17
|
`
|
|
19
18
|
|