MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / envelopeOf

Function envelopeOf

packages/server/test/oauth.e2e.test.ts:160–174  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

158}
159
160function envelopeOf<T>(body: unknown): {
161 code: number;
162 msg: string;
163 data: T | null;
164 request_id: string;
165 details?: unknown;
166} {
167 return body as {
168 code: number;
169 msg: string;
170 data: T | null;
171 request_id: string;
172 details?: unknown;
173 };
174}
175
176describe('POST /api/v1/oauth/login (P2.7)', () => {
177 it('returns 200 + envelope { code:0, data: OAuthFlowStart }', async () => {

Callers 1

oauth.e2e.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected