summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-06-07 10:54:23 -0700
committerGitHub <[email protected]>2025-06-07 10:54:23 -0700
commit680f4cdd61ab718d946afe0fd0d23828106bfda1 (patch)
tree12e53678d67a24699f1be6a410dc469f7876b601 /packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
parent63757d6a7ae6dcff47e912578903ed4040b2b82f (diff)
More version simplifiction. (#810)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
index a3babddf..1d33d218 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
@@ -115,7 +115,6 @@ describe('useSlashCommandProcessor', () => {
mockOpenThemeDialog,
mockPerformMemoryRefresh,
mockCorgiMode,
- 'test-version',
),
);
return result.current;
@@ -253,8 +252,8 @@ describe('useSlashCommandProcessor', () => {
description?: string,
sandboxEnvVar?: string,
seatbeltProfileVar?: string,
+ cliVersion?: string,
) => {
- const cliVersion = 'test-version';
const osVersion = 'test-platform test-node-version';
let sandboxEnvStr = 'no sandbox';
if (sandboxEnvVar && sandboxEnvVar !== 'sandbox-exec') {
@@ -293,12 +292,14 @@ Add any other context about the problem here.
it('should call open with the correct GitHub issue URL and return true', async () => {
process.env.SANDBOX = 'gemini-sandbox';
process.env.SEATBELT_PROFILE = 'test_profile';
+ process.env.CLI_VERSION = 'test-version';
const { handleSlashCommand } = getProcessor();
const bugDescription = 'This is a test bug';
const expectedUrl = getExpectedUrl(
bugDescription,
process.env.SANDBOX,
process.env.SEATBELT_PROFILE,
+ process.env.CLI_VERSION,
);
let commandResult: SlashCommandActionReturn | boolean = false;
await act(async () => {