Skip to content

Commit

Permalink
add thermalpad with custom dimensions example (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar authored Nov 14, 2024
1 parent cdceee5 commit 391f120
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/__snapshots__/quad-custom-thermalpad.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions tests/quad-custom-thermalpad.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"

test("quad16_w4_l4_p0.4_pw0.25_pl0.4_thermalpad1.5mmx1mm", () => {
const soup = fp
.string("quad16_w4_l4_p0.4_pw0.25_pl0.4_thermalpad1.5mmx1mm")
.circuitJson()
const svgContent = convertCircuitJsonToPcbSvg(soup)
expect(svgContent).toMatchSvgSnapshot(import.meta.path)
})

0 comments on commit 391f120

Please sign in to comment.