(model: string)
| 94 | |
| 95 | describe('getApiKeyCondition / shouldRequireApiKeyForModel', () => { |
| 96 | const evaluateCondition = (model: string): boolean => { |
| 97 | const conditionFn = getApiKeyCondition() |
| 98 | const condition = conditionFn({ model }) |
| 99 | if ('not' in condition && condition.not) return false |
| 100 | if (condition.value === '__no_model_selected__') return false |
| 101 | return true |
| 102 | } |
| 103 | |
| 104 | beforeEach(() => { |
| 105 | vi.clearAllMocks() |
no test coverage detected