We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63327c3 commit 840b9dcCopy full SHA for 840b9dc
1 file changed
apps/sim/tools/memory/get.test.ts
@@ -36,6 +36,20 @@ describe('memoryGetTool', () => {
36
expect(url).toBe('/api/memory/team%2Fuser%20123?workspaceId=workspace-1')
37
})
38
39
+ it('returns empty memories when key is not found (null data)', async () => {
40
+ const result = await transformResponse(
41
+ new Response(JSON.stringify({ success: true, data: null }))
42
+ )
43
+
44
+ expect(result).toEqual({
45
+ success: true,
46
+ output: {
47
+ memories: [],
48
+ message: 'No memories found',
49
+ },
50
+ })
51
52
53
it('wraps the exact memory response as a single result', async () => {
54
const result = await transformResponse(
55
new Response(
0 commit comments