mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-15 20:40:35 -07:00
feat: add 'blocked' status to tasks and todos (#22735)
This commit is contained in:
@@ -19,6 +19,7 @@ describe('WriteTodosTool', () => {
|
||||
{ description: 'Task 1', status: 'pending' },
|
||||
{ description: 'Task 2', status: 'in_progress' },
|
||||
{ description: 'Task 3', status: 'completed' },
|
||||
{ description: 'Task 4', status: 'blocked' },
|
||||
],
|
||||
};
|
||||
await expect(tool.buildAndExecute(params, signal)).resolves.toBeDefined();
|
||||
@@ -96,13 +97,15 @@ describe('WriteTodosTool', () => {
|
||||
{ description: 'First task', status: 'completed' },
|
||||
{ description: 'Second task', status: 'in_progress' },
|
||||
{ description: 'Third task', status: 'pending' },
|
||||
{ description: 'Fourth task', status: 'blocked' },
|
||||
],
|
||||
};
|
||||
const result = await tool.buildAndExecute(params, signal);
|
||||
const expectedOutput = `Successfully updated the todo list. The current list is now:
|
||||
1. [completed] First task
|
||||
2. [in_progress] Second task
|
||||
3. [pending] Third task`;
|
||||
3. [pending] Third task
|
||||
4. [blocked] Fourth task`;
|
||||
expect(result.llmContent).toBe(expectedOutput);
|
||||
expect(result.returnDisplay).toEqual(params);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user