File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments