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