mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-20 00:14:58 +00:00
1 parent
a95266e4cc
commit
8b681df455
12 files changed
+152
-25
No files matched your search
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'bun:test';
|
||||
import {
|
||||
getDeviceCodeProviderInstruction,
|
||||
getProviderDisplayName,
|
||||
isDeviceCodeProvider,
|
||||
} from '../../../ui/src/lib/provider-config';
|
||||
|
||||
describe('provider-config fallbacks', () => {
|
||||
@@ -15,4 +16,10 @@ describe('provider-config fallbacks', () => {
|
||||
'Complete the authorization in your browser.'
|
||||
);
|
||||
});
|
||||
|
||||
it('does not classify Cursor browser URL auth as a verification-code device flow', () => {
|
||||
expect(isDeviceCodeProvider('cursor')).toBe(false);
|
||||
expect(isDeviceCodeProvider('ghcp')).toBe(true);
|
||||
expect(isDeviceCodeProvider('qwen')).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user