Skip to content

Commit a33fc1d

Browse files
committed
Fixing final tests
1 parent f59f4f6 commit a33fc1d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Svelte/assets/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"module": "dist/register_controller.js",
66
"version": "1.0.0",
77
"license": "MIT",
8-
"type": "module",
98
"symfony": {
109
"controllers": {
1110
"svelte": {

src/Svelte/assets/test/render_controller.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)