Skip to content

Commit

Permalink
extend update test slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Nov 11, 2024
1 parent 91e6303 commit 4dd9bc9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,23 @@ test("update", () => {
},
]

const updatedPort = su(soup).source_port.update("source_port_0", {
su(soup).source_port.update("source_port_0", {
name: "right",
})

expect(updatedPort?.name).toBe("right")
const port = su(soup).source_port.get("source_port_0")

expect(port?.name).toBe("right")

su(soup).source_component.update("simple_resistor_0", {
supplier_part_numbers: {
jlcpcb: ["1234567890"],
},
})

const resistor = su(soup).source_component.get("simple_resistor_0")

expect(resistor?.supplier_part_numbers).toEqual({
jlcpcb: ["1234567890"],
})
})

0 comments on commit 4dd9bc9

Please sign in to comment.