mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
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:
@@ -153,6 +153,10 @@ describe('CoreMemoryStore', async () => {
|
|||||||
const cluster = store.createCluster({ name: 'Cluster B', description: 'Testing clusters' });
|
const cluster = store.createCluster({ name: 'Cluster B', description: 'Testing clusters' });
|
||||||
assert.ok(cluster);
|
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({
|
store.addClusterMember({
|
||||||
cluster_id: cluster.id,
|
cluster_id: cluster.id,
|
||||||
session_id: 'WFS-TEST-1',
|
session_id: 'WFS-TEST-1',
|
||||||
|
|||||||
Reference in New Issue
Block a user