bun-match-svg 0.0.4 → 0.0.6
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/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -109,7 +109,7 @@ async function toMatchMultipleSvgSnapshots(
|
|
|
109
109
|
const existingSnapshot = fs.readFileSync(filePath, "utf-8")
|
|
110
110
|
|
|
111
111
|
const result = await looksSame(
|
|
112
|
-
Buffer.from(received[index]),
|
|
112
|
+
Buffer.from(received[index] as any),
|
|
113
113
|
Buffer.from(existingSnapshot),
|
|
114
114
|
{
|
|
115
115
|
strict: false,
|
|
@@ -128,7 +128,7 @@ async function toMatchMultipleSvgSnapshots(
|
|
|
128
128
|
const diffPath = filePath.replace(".snap.svg", ".diff.png")
|
|
129
129
|
await looksSame.createDiff({
|
|
130
130
|
reference: Buffer.from(existingSnapshot),
|
|
131
|
-
current: Buffer.from(received[index]),
|
|
131
|
+
current: Buffer.from(received[index] as any),
|
|
132
132
|
diff: diffPath,
|
|
133
133
|
highlightColor: "#ff00ff",
|
|
134
134
|
})
|