Skip to content

Commit 930acdc

Browse files
committed
Updated LED tests
1 parent e53abaa commit 930acdc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ui/widgets/LED/led.test.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ describe("width property is used", (): void => {
8282
// so whatever is input has 5 subtracted from it, this makes it
8383
// look more like CS-Studio
8484
expect(renderedLed.props.style.width).toBe("5px");
85+
expect(renderedLed.props.style.height).toBe("15px");
86+
});
87+
});
88+
89+
describe("height property is used", (): void => {
90+
it("height changes the size of the LED", (): void => {
91+
const renderedLed = renderLed({ ...DEFAULT_PROPS, height: 10 });
92+
93+
// Width in CS-Studio doesn't quite match width in the browser,
94+
// so whatever is input has 5 subtracted from it, this makes it
95+
// look more like CS-Studio
96+
expect(renderedLed.props.style.width).toBe("15px");
8597
expect(renderedLed.props.style.height).toBe("5px");
8698
});
8799
});

0 commit comments

Comments
 (0)