mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
remove test case
This commit is contained in:
parent
a32ab3a58f
commit
b4d2ba2a56
2 changed files with 9 additions and 31 deletions
|
|
@ -197,28 +197,6 @@ describe('HooksManagementDialog', () => {
|
|||
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('should navigate up and down with arrow keys', async () => {
|
||||
const { lastFrame, unmount } = renderWithProviders(
|
||||
<HooksManagementDialog onClose={mockOnClose} />,
|
||||
);
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
|
||||
// Initial state - first item selected
|
||||
let output = lastFrame();
|
||||
expect(output).toContain('❯');
|
||||
|
||||
// Press down - should move selection
|
||||
keypressHandler!(createKey('down'));
|
||||
output = lastFrame();
|
||||
|
||||
// Press up - should move back
|
||||
keypressHandler!(createKey('up'));
|
||||
output = lastFrame();
|
||||
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should not go above first item when pressing up', async () => {
|
||||
const { unmount } = renderWithProviders(
|
||||
<HooksManagementDialog onClose={mockOnClose} />,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue