Files
BossAI/src/web/pages/settings.payload-rule-platform-options.test.ts
T
boos 0eb7c32585 fix: restore frontend source code (src/web/) that was accidentally deleted
Frontend source is needed for development/building the SPA.
Only Node.js runtime server code should be removed.
2026-05-18 09:33:56 +08:00

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',
]));
});
});