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 5
5
"module" : " dist/register_controller.js" ,
6
6
"version" : " 1.0.0" ,
7
7
"license" : " MIT" ,
8
- "type" : " module" ,
9
8
"symfony" : {
10
9
"controllers" : {
11
10
"svelte" : {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('SvelteController', () => {
64
64
65
65
await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
66
66
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>' ) ) ;
68
68
} ) ;
69
69
70
70
it ( 'connect without props' , async ( ) => {
@@ -83,7 +83,7 @@ describe('SvelteController', () => {
83
83
84
84
await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
85
85
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>' ) ) ;
87
87
} ) ;
88
88
89
89
it ( 'connect with props and intro' , async ( ) => {
@@ -104,6 +104,6 @@ describe('SvelteController', () => {
104
104
await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'connected' ) ) ;
105
105
await waitFor ( ( ) => expect ( component ) . toHaveClass ( 'mounted' ) ) ;
106
106
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>' ) ) ;
108
108
} ) ;
109
109
} ) ;
You can’t perform that action at this time.
0 commit comments