Make persistence test compatible with current main

This commit is contained in:
Lum1104
2026-03-28 15:55:15 +08:00
Unverified
parent 334ac871df
commit 34dcf1f16b
@@ -94,7 +94,7 @@ describe("persistence", () => {
});
it("should throw error when loading a fatally invalid graph", () => {
const invalidGraph = { ...sampleGraph, nodes: "not-an-array" };
const invalidGraph = { ...sampleGraph, project: null };
saveGraph(tempDir, invalidGraph as unknown as KnowledgeGraph);
expect(() => {