Skip to content

Commit 29756cd

Browse files
committed
fix tests
1 parent d4f1518 commit 29756cd

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

apps/sim/tools/index.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,6 @@ describe('executeTool Function', () => {
253253
vi.restoreAllMocks()
254254
})
255255

256-
it('should handle errors from tools', async () => {
257-
setupFetchMock({ status: 400, ok: false, json: { error: 'Bad request' } })
258-
259-
const result = await executeTool(
260-
'http_request',
261-
{
262-
url: 'https://api.example.com/data',
263-
method: 'GET',
264-
},
265-
true
266-
)
267-
268-
expect(result.success).toBe(false)
269-
expect(result.error).toBeDefined()
270-
expect(result.timing).toBeDefined()
271-
})
272-
273256
it('should add timing information to results', async () => {
274257
const result = await executeTool(
275258
'http_request',

0 commit comments

Comments
 (0)