MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / fakeRequest

Function fakeRequest

apps/cli/src/http/auth.test.ts:5–7  ·  view source on GitHub ↗
(url: string, authorization?: string)

Source from the content-addressed store, hash-verified

3import { setAuthToken, setRequireAuth, authHook } from '@openchatlab/http-routes'
4
5function fakeRequest(url: string, authorization?: string) {
6 return { url, headers: { authorization } } as never
7}
8
9function fakeReply() {
10 let sentCode = 0

Callers 1

auth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected