MCPcopy
hub / github.com/midwayjs/midway / CustomCOS

Class CustomCOS

packages/cos/test/customClient.test.ts:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4describe('/test/customClient.test.ts', () => {
5 class CustomCOS {
6 constructor(public config: any) {}
7
8 request(options: any) {
9 return Promise.resolve(options.Action);
10 }
11 }
12
13 it('should create a custom client from client config', async () => {
14 const app = await createLightApp('', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected