Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphsmith80 committed Aug 29, 2024
1 parent fcde6bf commit 89fb152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/solid/test/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("Particles", () => {
it("renders a Particles-component", () => {
createRoot(() => {
const container = (<Particles />) as HTMLDivElement;
expect(container.outerHTML).toBe("<div><canvas></canvas></div>");
expect(container.outerHTML).toBe('<div id="tsparticles"><canvas></canvas></div>');
});
});
});
2 changes: 1 addition & 1 deletion components/solid/test/server.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ describe("environment", () => {
describe("Particles", () => {
it("renders a Particles-component", () => {
const string = renderToString(() => <Particles />);
expect(string).toBe("<div><canvas></canvas></div>");
expect(string).toBe('<div id="tsparticles"><canvas style=""></canvas></div>');
});
});

0 comments on commit 89fb152

Please sign in to comment.