mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
Update feature-state-manager.test.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -178,14 +178,14 @@ describe('FeatureStateManager', () => {
|
||||
await manager.updateFeatureStatus('/project', 'feature-123', 'waiting_approval');
|
||||
|
||||
const savedFeature = (atomicWriteJson as Mock).mock.calls[0][1] as Feature;
|
||||
// All tasks should be completed
|
||||
// Only in_progress tasks should be completed
|
||||
expect(savedFeature.planSpec?.tasks?.[0].status).toBe('completed');
|
||||
expect(savedFeature.planSpec?.tasks?.[1].status).toBe('completed');
|
||||
expect(savedFeature.planSpec?.tasks?.[2].status).toBe('completed');
|
||||
expect(savedFeature.planSpec?.tasks?.[2].status).toBe('pending');
|
||||
// currentTaskId should be cleared
|
||||
expect(savedFeature.planSpec?.currentTaskId).toBeUndefined();
|
||||
// tasksCompleted should equal total tasks
|
||||
expect(savedFeature.planSpec?.tasksCompleted).toBe(3);
|
||||
// tasksCompleted should be 2, not 3
|
||||
expect(savedFeature.planSpec?.tasksCompleted).toBe(2);
|
||||
});
|
||||
|
||||
it('should finalize tasks when moving to verified status', async () => {
|
||||
|
||||
Reference in New Issue
Block a user