Skip to content

Commit

Permalink
Removing unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
laisspportugal committed Jan 17, 2025
1 parent fd09e4f commit 80030ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/suite-base/src/panels/Plot/hooks/useRenderer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ describe("useRenderer hook", () => {
expect(result.current).toBeInstanceOf(OffscreenCanvasRenderer);
expect(canvasDiv.querySelector("canvas")).not.toBeNull();

//unmounting the hook
unmount();

//Checking that the renderer was destroyed and canvas removed
expect(canvasDiv.querySelector("canvas")).toBeNull();
});

Expand All @@ -66,7 +64,6 @@ describe("useRenderer hook", () => {

const initialRenderer = result.current;

// Switching canvasDiv
rerender({ div: canvasDiv2 });

expect(result.current).not.toBe(initialRenderer);
Expand Down

0 comments on commit 80030ee

Please sign in to comment.