(app: any, path: string, body?: unknown)
| 64 | } |
| 65 | |
| 66 | async 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 | |
| 76 | describe('PATCH /:id/metadata', () => { |
| 77 | it('writes workspace-owned display metadata without changing launcher identity', async () => { |
no test coverage detected