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

Function fakeReply

apps/cli/src/http/auth.test.ts:9–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9function fakeReply() {
10 let sentCode = 0
11 let sentBody: unknown = null
12 return {
13 code(c: number) {
14 sentCode = c
15 return this
16 },
17 send(body: unknown) {
18 sentBody = body
19 },
20 get statusCode() {
21 return sentCode
22 },
23 get body() {
24 return sentBody
25 },
26 }
27}
28
29const VALID_TOKEN = 'clb_test_token_12345'
30

Callers 1

auth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected