summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/InputPrompt.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.test.tsx')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.test.tsx8
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,