mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
remove cases
This commit is contained in:
parent
b0d01a1fb9
commit
a4e2ff9554
2 changed files with 0 additions and 27 deletions
|
|
@ -113,20 +113,6 @@ describe('HooksListStep', () => {
|
|||
expect(output).not.toContain('(0)');
|
||||
});
|
||||
|
||||
it('should show total configured hooks count', () => {
|
||||
const hooks: HookEventDisplayInfo[] = [
|
||||
createMockHookInfo(HookEventName.PreToolUse, 2),
|
||||
createMockHookInfo(HookEventName.PostToolUse, 3),
|
||||
];
|
||||
|
||||
const { lastFrame } = render(
|
||||
<HooksListStep hooks={hooks} selectedIndex={0} />,
|
||||
);
|
||||
|
||||
const output = lastFrame();
|
||||
expect(output).toContain('5 hooks configured');
|
||||
});
|
||||
|
||||
it('should show singular form for single hook', () => {
|
||||
const hooks: HookEventDisplayInfo[] = [
|
||||
createMockHookInfo(HookEventName.PreToolUse, 1),
|
||||
|
|
|
|||
|
|
@ -98,19 +98,6 @@ describe('HooksManagementDialog', () => {
|
|||
expect(lastFrame()).toContain('Loading hooks');
|
||||
});
|
||||
|
||||
it('should show total configured hooks count', async () => {
|
||||
const { lastFrame, unmount } = renderWithProviders(
|
||||
<HooksManagementDialog onClose={mockOnClose} />,
|
||||
);
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
|
||||
const output = lastFrame();
|
||||
expect(output).toContain('hooks configured');
|
||||
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should display all hook events', async () => {
|
||||
const { lastFrame, unmount } = renderWithProviders(
|
||||
<HooksManagementDialog onClose={mockOnClose} />,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue