MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / patch

Function patch

src/webui/routes/workspaces.spec.ts:66–74  ·  view source on GitHub ↗
(app: any, path: string, body?: unknown)

Source from the content-addressed store, hash-verified

64}
65
66async function patch(app: any, path: string, body?: unknown) {
67 const res = await app.request(path, {
68 method: 'PATCH',
69 headers: body !== undefined ? { 'Content-Type': 'application/json' } : undefined,
70 body: body !== undefined ? JSON.stringify(body) : undefined,
71 });
72 const json = await res.json().catch(() => null);
73 return { status: res.status, body: json as any };
74}
75
76describe('PATCH /:id/metadata', () => {
77 it('writes workspace-owned display metadata without changing launcher identity', async () => {

Callers 1

workspaces.spec.tsFile · 0.85

Calls 1

requestMethod · 0.65

Tested by

no test coverage detected