Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 12, 2024
1 parent 0284fd9 commit b7dce66
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tmp
temp.tsx
tmp.json
tmp*
*.diff.png
Binary file not shown.
2 changes: 0 additions & 2 deletions tests/convert-to-soup-tests/c5184526.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"

test("C5184526 should have two holes", () => {
const bettereasy = EasyEdaJsonSchema.parse(c5184526)
Bun.write("./tmp.bettereasy.json", JSON.stringify(bettereasy, null, 2))
const circuitJson = convertEasyEdaJsonToCircuitJson(bettereasy)

expect(circuitJson.filter((e) => e.type === "pcb_hole").length).toBe(2)
Bun.write("./tmp.json", JSON.stringify(circuitJson, null, 2))

expect(convertCircuitJsonToPcbSvg(circuitJson)).toMatchSvgSnapshot(
import.meta.path,
Expand Down

0 comments on commit b7dce66

Please sign in to comment.