test(core-memory-store): add unit tests for memory store operations

Solution-ID: SOL-1735386000004

Issue-ID: ISS-1766921318981-18

Task-ID: T1
This commit is contained in:
catlog22
2025-12-29 09:42:01 +08:00
parent d68401fa1a
commit 267426e332

View File

@@ -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',