Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
imrishabh18 committed Feb 15, 2025
1 parent 13213b3 commit 9ee8c0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/dip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ test("dip10_w4.00mm_p2.65mm", () => {

test("dip4", () => {
const circuitJson = fp.string("dip4").circuitJson() as AnyCircuitElement[]
const json = fp.string("dip4").json()

expect(json).toMatchInlineSnapshot(`
{
"fn": "dip",
"id": 1,
"num_pins": 4,
"od": 1.5,
"p": 2.54,
"w": 7.62,
}
`)

const svgContent = convertCircuitJsonToPcbSvg(circuitJson)
expect(svgContent).toMatchSvgSnapshot(import.meta.path, "dip4")
Expand Down

0 comments on commit 9ee8c0b

Please sign in to comment.