diff options
| author | Abhi <[email protected]> | 2025-07-20 16:57:34 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-20 20:57:34 +0000 |
| commit | 2a95c8287ed3b6fc38e7dcec5f0a19b9e2d843e7 (patch) | |
| tree | 1a9ffb6be8468aa44e54bfcb8ae2f961b970cf9a /packages/cli/src/ui/components/InputPrompt.test.tsx | |
| parent | 7a9821607bafcbb98cf059705aaab358d46e711c (diff) | |
prefactor(commands): Command Service Prefactor for Extensible Commands (#4511)
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.test.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.test.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.test.tsx b/packages/cli/src/ui/components/InputPrompt.test.tsx index 6b201901..886a6235 100644 --- a/packages/cli/src/ui/components/InputPrompt.test.tsx +++ b/packages/cli/src/ui/components/InputPrompt.test.tsx @@ -451,13 +451,13 @@ describe('InputPrompt', () => { unmount(); }); - it('should complete a command based on its altName', async () => { - // Add a command with an altName to our mock for this test + it('should complete a command based on its altNames', async () => { + // Add a command with an altNames to our mock for this test props.slashCommands.push({ name: 'help', - altName: '?', + altNames: ['?'], description: '...', - }); + } as SlashCommand); mockedUseCompletion.mockReturnValue({ ...mockCompletion, |
