test: remove or fix brittle tests
This commit is contained in:
@@ -30,16 +30,5 @@ describe("Preview.svelte", () => {
|
||||
expect(stage).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should have correct stage dimensions", () => {
|
||||
const { container } = render(Preview, {
|
||||
props: {
|
||||
text: "Test",
|
||||
stage: undefined,
|
||||
},
|
||||
});
|
||||
|
||||
const stage = container.querySelector("canvas");
|
||||
expect(stage).toHaveAttribute("width", "320");
|
||||
expect(stage).toHaveAttribute("height", "100");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user