mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-03 08:24:10 -07:00
fix(cli): correct alternate buffer warning logic for JetBrains (#26067)
This commit is contained in:
@@ -220,5 +220,22 @@ describe('getUserStartupWarnings', () => {
|
||||
);
|
||||
expect(warnings).not.toContainEqual(compWarning);
|
||||
});
|
||||
|
||||
it('should correctly pass isAlternateBuffer option to getCompatibilityWarnings', async () => {
|
||||
const projectDir = path.join(testRootDir, 'project-alt');
|
||||
await fs.mkdir(projectDir);
|
||||
|
||||
await getUserStartupWarnings({}, projectDir, { isAlternateBuffer: true });
|
||||
expect(getCompatibilityWarnings).toHaveBeenCalledWith({
|
||||
isAlternateBuffer: true,
|
||||
});
|
||||
|
||||
await getUserStartupWarnings({}, projectDir, {
|
||||
isAlternateBuffer: false,
|
||||
});
|
||||
expect(getCompatibilityWarnings).toHaveBeenCalledWith({
|
||||
isAlternateBuffer: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user