File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 55 "module" : " dist/register_controller.js" ,
66 "version" : " 1.0.0" ,
77 "license" : " MIT" ,
8- "type" : " module" ,
98 "symfony" : {
109 "controllers" : {
1110 "svelte" : {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('SvelteController', () => {
6464
6565 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
6666 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'mounted' ) ) ;
67- await waitFor ( ( ) => expect ( component . innerHTML ) . toEqual ( '<div><div>Hello Symfony</div></div>' ) ) ;
67+ await waitFor ( ( ) => expect ( component . innerHTML ) . toContain ( '<div><div>Hello Symfony</div></div>' ) ) ;
6868 } ) ;
6969
7070 it ( 'connect without props' , async ( ) => {
@@ -83,7 +83,7 @@ describe('SvelteController', () => {
8383
8484 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
8585 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'mounted' ) ) ;
86- await waitFor ( ( ) => expect ( component . innerHTML ) . toEqual ( '<div><div>Hello without props</div></div>' ) ) ;
86+ await waitFor ( ( ) => expect ( component . innerHTML ) . toContain ( '<div><div>Hello without props</div></div>' ) ) ;
8787 } ) ;
8888
8989 it ( 'connect with props and intro' , async ( ) => {
@@ -104,6 +104,6 @@ describe('SvelteController', () => {
104104 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
105105 await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'mounted' ) ) ;
106106 expect ( component . innerHTML ) . toContain ( 'style="animation:' ) ;
107- await waitFor ( ( ) => expect ( component . innerHTML . trim ( ) ) . toEqual ( '<div style=""><div> Hello Symfony with transition</div> </div>' ) ) ;
107+ await waitFor ( ( ) => expect ( component . innerHTML . trim ( ) ) . toContain ( '<div> Hello Symfony with transition</div>' ) ) ;
108108 } ) ;
109109} ) ;
You can’t perform that action at this time.
0 commit comments