Skip to content

Commit

Permalink
fixed rotated resistor test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiboSoftwareDev committed Dec 22, 2024
1 parent f7e1c1c commit 7fc7168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tests/sch/__snapshots__/rotated-resistor.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 2 additions & 11 deletions tests/sch/rotated-resistor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,12 @@ test("schematic rotated resistor", () => {
name="R1"
resistance="10k"
footprint="0402"
schRotation="0deg"
schRotation="90deg"
/>
</board>,
)

expect(
convertCircuitJsonToSchematicSvg(
circuit.getCircuitJson().map((c) => {
if (c.type !== "schematic_component") return c

return {
...c,
symbol_name: "boxresistor_vert",
}
}),
),
convertCircuitJsonToSchematicSvg(circuit.getCircuitJson()),
).toMatchSvgSnapshot(import.meta.path)
})

0 comments on commit 7fc7168

Please sign in to comment.