0eb7c32585
Frontend source is needed for development/building the SPA. Only Node.js runtime server code should be removed.
27 lines
702 B
TypeScript
27 lines
702 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { PAYLOAD_RULE_PROTOCOL_OPTIONS } from './settings/payloadRuleProtocolOptions.js';
|
|
|
|
describe('payload rule platform options', () => {
|
|
it('includes non-codex upstream platforms that payload rules can match in production routing', () => {
|
|
const values = PAYLOAD_RULE_PROTOCOL_OPTIONS.map((option) => option.value);
|
|
|
|
expect(values).toEqual(expect.arrayContaining([
|
|
'',
|
|
'codex',
|
|
'sub2api',
|
|
'new-api',
|
|
'one-api',
|
|
'cliproxyapi',
|
|
'openai',
|
|
'claude',
|
|
'gemini',
|
|
'gemini-cli',
|
|
'antigravity',
|
|
'anyrouter',
|
|
'done-hub',
|
|
'one-hub',
|
|
'veloera',
|
|
]));
|
|
});
|
|
});
|