Merge pull request #232 from PR0M3TH3AN/test/unpin-memory-coverage-10292270866664076558

🧪 Test unpinMemory function
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-17 13:37:15 -05:00
commit ef3e20b1aa
1 file changed
+3 -3
+3 -3
View File
@@ -103,9 +103,9 @@ test('unpinMemory unpins the memory and clears the cache', async () => {
assert.equal(listMemoriesCallCount, 1, 'Repository should NOT be queried on cache hit');
// 3. Unpin memory
const unpinned = await unpinMemory('m1', { repository });
assert.ok(unpinned);
assert.equal(unpinned.pinned, false);
const updated = await unpinMemory('m1', { repository });
assert.ok(updated);
assert.equal(updated.pinned, false);
assert.equal(records[0].pinned, false);
// 4. Verify cache miss (cleared)