run preflight (#55)

This commit is contained in:
Fan 2025-07-23 16:18:31 +08:00 committed by GitHub
parent 173246723e
commit 40ee936453
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 62 additions and 40 deletions

View file

@ -165,7 +165,7 @@ describe('AuthDialog', () => {
);
// Since only OpenAI is available, it should be selected by default
expect(lastFrame()).toContain(' OpenAI');
expect(lastFrame()).toContain(' OpenAI');
});
it('should fall back to default if GEMINI_DEFAULT_AUTH_TYPE is not set', () => {
@ -188,7 +188,7 @@ describe('AuthDialog', () => {
);
// Default is OpenAI (the only option)
expect(lastFrame()).toContain(' OpenAI');
expect(lastFrame()).toContain(' OpenAI');
});
it('should show an error and fall back to default if GEMINI_DEFAULT_AUTH_TYPE is invalid', () => {
@ -214,7 +214,7 @@ describe('AuthDialog', () => {
// Since the auth dialog doesn't show GEMINI_DEFAULT_AUTH_TYPE errors anymore,
// it will just show the default OpenAI option
expect(lastFrame()).toContain(' OpenAI');
expect(lastFrame()).toContain(' OpenAI');
});
});