mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Make persistence test compatible with current main
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user