()
| 7 | } |
| 8 | |
| 9 | function 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 | |
| 29 | const VALID_TOKEN = 'clb_test_token_12345' |
| 30 |