Skip to content

Commit 813dabf

Browse files
authored
Disable routing in tests (#13)
1 parent 32cbeab commit 813dabf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

tests/test1-basic-circuit.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module "bun:test" {
1010

1111
it("test1 should render a basic circuit", () => {
1212
const circuitJson = renderCircuit(
13-
<board width="10mm" height="10mm">
13+
<board width="10mm" height="10mm" routingDisabled>
1414
<resistor resistance="1k" footprint="0402" name="R1" schX={3} pcbX={3} />
1515
<capacitor
1616
capacitance="1nF"

tests/test2-chip.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module "bun:test" {
1010

1111
it("test2 chip", () => {
1212
const circuitJson = renderCircuit(
13-
<board width="10mm" height="10mm">
13+
<board width="10mm" height="10mm" routingDisabled>
1414
<chip
1515
name="U1"
1616
footprint="soic8"

tests/test3-no-footprint-chip.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module "bun:test" {
1010

1111
it("chip without footprint doesn't output undefined", () => {
1212
const circuitJson = renderCircuit(
13-
<board width="10mm" height="10mm">
13+
<board width="10mm" height="10mm" routingDisabled>
1414
<chip name="LED1" manufacturerPartNumber="WS2812B_2020" />
1515
</board>,
1616
)
@@ -19,6 +19,10 @@ it("chip without footprint doesn't output undefined", () => {
1919
expect(netlist).toMatchInlineSnapshot(`
2020
"COMPONENTS:
2121
- LED1: WS2812B_2020
22+
23+
24+
COMPONENT_PINS:
25+
LED1 (WS2812B_2020)
2226
"
2327
`)
2428
})

0 commit comments

Comments
 (0)