Skip to content

Commit 2bbc8e0

Browse files
committed
fix test
1 parent bb4ecdf commit 2bbc8e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

chartlets.js/packages/lib/src/plugins/vega/VegaChart.test.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
import { describe, it, expect } from "vitest";
1+
import { describe, expect, it } from "vitest";
22
import { render } from "@testing-library/react";
33
// import { render, screen, fireEvent } from "@testing-library/react";
44
import type { TopLevelSpec } from "vega-lite";
55
import { createChangeHandler } from "@/plugins/mui/common.test";
66
import { VegaChart } from "./VegaChart";
77

8+
global.ResizeObserver = class {
9+
observe() {}
10+
unobserve() {}
11+
disconnect() {}
12+
};
13+
814
describe("VegaChart", () => {
915
it("should render if chart is not given", () => {
1016
render(

0 commit comments

Comments
 (0)