Skip to content

Commit 9a7ef93

Browse files
committed
improvement(tools): assert the dynamic internal-route test uses the internal transport
1 parent a406ea4 commit 9a7ef93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/sim/tools/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,6 +3158,7 @@ describe('Automatic Internal Route Detection', () => {
31583158
resourceId: { type: 'string', required: true },
31593159
},
31603160
request: {
3161+
internalRoute: true,
31613162
url: (params: any) => `/api/resources/${params.resourceId}`,
31623163
method: 'GET',
31633164
headers: () => ({ 'Content-Type': 'application/json' }),
@@ -3196,6 +3197,8 @@ describe('Automatic Internal Route Detection', () => {
31963197
expect(result.success).toBe(true)
31973198
expect(result.output.result).toBe('Dynamic internal route success')
31983199
expect(mockTool.transformResponse).toHaveBeenCalled()
3200+
expect(global.fetch).toHaveBeenCalled()
3201+
expect(mockSecureFetchWithPinnedIP).not.toHaveBeenCalled()
31993202

32003203
Object.assign(tools, originalTools)
32013204
})

0 commit comments

Comments
 (0)