diff options
| author | Shoubhit Dash <[email protected]> | 2026-01-30 21:08:11 +0530 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2026-01-30 21:09:12 -0700 |
| commit | 05ecc18e4f0eef6d3b88b0e459b43ad9f13ce8cf (patch) | |
| tree | 84d930a7fccccff3a6d54295ee8ecec8d0acedb0 /packages/tools/src/tools.test.ts | |
| parent | done (diff) | |
| download | supermemory-01-30-mastra_integration.tar.xz supermemory-01-30-mastra_integration.zip | |
format and lint01-30-mastra_integration
Diffstat (limited to 'packages/tools/src/tools.test.ts')
| -rw-r--r-- | packages/tools/src/tools.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/tools/src/tools.test.ts b/packages/tools/src/tools.test.ts index 32a49a2e..ab6f9b84 100644 --- a/packages/tools/src/tools.test.ts +++ b/packages/tools/src/tools.test.ts @@ -165,16 +165,16 @@ describe("@supermemory/tools", () => { (d) => d.function.name === "searchMemories", ) expect(searchTool).toBeDefined() - expect(searchTool!.type).toBe("function") - expect(searchTool!.function.parameters?.required).toContain( + expect(searchTool?.type).toBe("function") + expect(searchTool?.function.parameters?.required).toContain( "informationToGet", ) // Check addMemory const addTool = definitions.find((d) => d.function.name === "addMemory") expect(addTool).toBeDefined() - expect(addTool!.type).toBe("function") - expect(addTool!.function.parameters?.required).toContain("memory") + expect(addTool?.type).toBe("function") + expect(addTool?.function.parameters?.required).toContain("memory") }) }) |