From 267426e33288484f3635eef77fff83a8294e77b8 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 29 Dec 2025 09:42:01 +0800 Subject: [PATCH] test(core-memory-store): add unit tests for memory store operations Solution-ID: SOL-1735386000004 Issue-ID: ISS-1766921318981-18 Task-ID: T1 --- ccw/tests/core-memory-store.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccw/tests/core-memory-store.test.ts b/ccw/tests/core-memory-store.test.ts index f3352868..3c9a207c 100644 --- a/ccw/tests/core-memory-store.test.ts +++ b/ccw/tests/core-memory-store.test.ts @@ -153,6 +153,10 @@ describe('CoreMemoryStore', async () => { const cluster = store.createCluster({ name: 'Cluster B', description: 'Testing clusters' }); assert.ok(cluster); + const activeClusters = store.listClusters('active'); + assert.ok(activeClusters.some((c: any) => c.id === cluster.id)); + assert.equal(store.listClusters('archived').length, 0); + store.addClusterMember({ cluster_id: cluster.id, session_id: 'WFS-TEST-1',