mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-20 02:17:05 +00:00
fix(cursor): deprecate legacy bridge and harden gitlab auth
This commit is contained in:
1 parent
93afdb50bf
commit
87d93b651b
13 files changed
+334
-95
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
import {
|
||||
getDeviceCodeProviderInstruction,
|
||||
getProviderDisplayName,
|
||||
} from '../../../ui/src/lib/provider-config';
|
||||
|
||||
describe('provider-config fallbacks', () => {
|
||||
it('uses translated fallback copy for unknown providers', () => {
|
||||
expect(getProviderDisplayName('not-a-provider')).toBe('Unknown provider: not-a-provider');
|
||||
expect(getProviderDisplayName(undefined)).toBe('Unknown provider: unknown');
|
||||
});
|
||||
|
||||
it('uses translated default device-code guidance for unknown providers', () => {
|
||||
expect(getDeviceCodeProviderInstruction('not-a-provider')).toBe(
|
||||
'Complete the authorization in your browser.'
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user