Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/src/lib/__tests__/plugin/chart-helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ vi.mock("@neoboard/components", () => ({
SunburstChart: Stub,
RadarChart: Stub,
TreemapChart: Stub,
GanttChart: Stub,
CirclePackingChart: Stub,
ChoroplethChart: Stub,
EmptyState: Stub,
Skeleton: Stub,
}));
Expand Down
8 changes: 4 additions & 4 deletions app/src/plugins/__tests__/plugin-hardening.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("plugin hardening", () => {
type: "",
label: "X",
component: () => null,
transform: (d) => d,
transform: (d: unknown) => d,
} as never),
).toThrow("type is required");
});
Expand All @@ -121,7 +121,7 @@ describe("plugin hardening", () => {
type: "x",
label: "",
component: () => null,
transform: (d) => d,
transform: (d: unknown) => d,
} as never),
).toThrow("label is required");
});
Expand All @@ -143,7 +143,7 @@ describe("plugin hardening", () => {
type: "test",
label: "Test",
component: (() => null) as never,
transform: (d) => d,
transform: (d: unknown) => d,
options: [{ key: "", label: "X", type: "boolean", default: false }],
} as never);
expect(spy).toHaveBeenCalledWith(
Expand All @@ -159,7 +159,7 @@ describe("plugin hardening", () => {
type: "test2",
label: "Test",
component: (() => null) as never,
transform: (d) => d,
transform: (d: unknown) => d,
compatibleWith: ["neo4j", ""],
} as never);
expect(spy).toHaveBeenCalledWith(
Expand Down
Loading