summaryrefslogtreecommitdiff
path: root/integration-tests/save_memory.test.js
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-08-12 09:19:09 -0700
committerGitHub <[email protected]>2025-08-12 16:19:09 +0000
commit804c181ac4a3dc1c4971a5b8a643421bbe697f3d (patch)
treedc0ae93448453081954da307a91d90dfec9c361a /integration-tests/save_memory.test.js
parent2d1a6af890da1e9437cd1a1774e2c7fc7ad32957 (diff)
chore(integration-tests): refactor to typescript (#5645)
Diffstat (limited to 'integration-tests/save_memory.test.js')
-rw-r--r--integration-tests/save_memory.test.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/integration-tests/save_memory.test.js b/integration-tests/save_memory.test.js
deleted file mode 100644
index 3ec641d4..00000000
--- a/integration-tests/save_memory.test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @license
- * Copyright 2025 Google LLC
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { test } from 'node:test';
-import { strict as assert } from 'assert';
-import { TestRig, printDebugInfo, validateModelOutput } from './test-helper.js';
-
-test('should be able to save to memory', async () => {
- const rig = new TestRig();
- await rig.setup('should be able to save to memory');
-
- const prompt = `remember that my favorite color is blue.
-
- what is my favorite color? tell me that and surround it with $ symbol`;
- const result = await rig.run(prompt);
-
- const foundToolCall = await rig.waitForToolCall('save_memory');
-
- // Add debugging information
- if (!foundToolCall || !result.toLowerCase().includes('blue')) {
- const allTools = printDebugInfo(rig, result, {
- 'Found tool call': foundToolCall,
- 'Contains blue': result.toLowerCase().includes('blue'),
- });
-
- console.error(
- 'Memory tool calls:',
- allTools
- .filter((t) => t.toolRequest.name === 'save_memory')
- .map((t) => t.toolRequest.args),
- );
- }
-
- assert.ok(foundToolCall, 'Expected to find a save_memory tool call');
-
- // Validate model output - will throw if no output, warn if missing expected content
- validateModelOutput(result, 'blue', 'Save memory test');
-});