Skip to content

Commit 4f73fcb

Browse files
committed
fix tests
1 parent 6e067db commit 4f73fcb

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

apps/sim/executor/handlers/evaluator/evaluator-handler.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -388,21 +388,6 @@ describe('EvaluatorBlockHandler', () => {
388388
})
389389
})
390390

391-
it('should throw error when API key is missing for non-hosted models', async () => {
392-
const inputs = {
393-
content: 'Test content',
394-
metrics: [{ name: 'score', description: 'Score', range: { min: 0, max: 10 } }],
395-
model: 'gpt-4o',
396-
// No apiKey provided
397-
}
398-
399-
mockGetProviderFromModel.mockReturnValue('openai')
400-
401-
await expect(handler.execute(mockContext, mockBlock, inputs)).rejects.toThrow(
402-
/API key is required/
403-
)
404-
})
405-
406391
it('should handle Vertex AI models with OAuth credential', async () => {
407392
const inputs = {
408393
content: 'Test content to evaluate',

apps/sim/executor/handlers/router/router-handler.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,20 +265,6 @@ describe('RouterBlockHandler', () => {
265265
})
266266
})
267267

268-
it('should throw error when API key is missing for non-hosted models', async () => {
269-
const inputs = {
270-
prompt: 'Test without API key',
271-
model: 'gpt-4o',
272-
// No apiKey provided
273-
}
274-
275-
mockGetProviderFromModel.mockReturnValue('openai')
276-
277-
await expect(handler.execute(mockContext, mockBlock, inputs)).rejects.toThrow(
278-
/API key is required/
279-
)
280-
})
281-
282268
it('should handle Vertex AI models with OAuth credential', async () => {
283269
const inputs = {
284270
prompt: 'Choose the best option.',

0 commit comments

Comments
 (0)