MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchAuthHeader

Function fetchAuthHeader

apps/sim/app/api/providers/together/models/route.test.ts:76–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76const fetchAuthHeader = () => {
77 const init = mockFetch.mock.calls[0]?.[1] as RequestInit | undefined
78 const headers = init?.headers as Record<string, string> | undefined
79 return headers?.Authorization
80}
81
82describe('GET /api/providers/together/models', () => {
83 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected