File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ describe("Button", () => {
2222 </ Button >
2323 ) ;
2424 expect ( screen . getByRole ( "button" ) . lastChild ) . toEqual ( screen . getByText ( / l e f t i c o n / i) ) ;
25- expect ( container . getElementsByClassName ( " eccgui-icon" ) . length ) . toBe ( 1 ) ;
25+ expect ( container . getElementsByClassName ( ` ${ eccgui } -icon` ) . length ) . toBe ( 1 ) ;
2626 } ) ;
2727
2828 it ( "should have icon at the right after the text" , ( ) => {
@@ -32,7 +32,7 @@ describe("Button", () => {
3232 </ Button >
3333 ) ;
3434 expect ( screen . getByRole ( "button" ) . firstChild ) . toEqual ( screen . getByText ( / r i g h t i c o n / i) ) ;
35- expect ( container . getElementsByClassName ( " eccgui-icon" ) . length ) . toBe ( 1 ) ;
35+ expect ( container . getElementsByClassName ( ` ${ eccgui } -icon` ) . length ) . toBe ( 1 ) ;
3636 } ) ;
3737
3838 it ( "should render badge markup with correct content when used on an icon button" , ( ) => {
You can’t perform that action at this time.
0 commit comments