lab4: evidence, REPORT.md, форматирование

This commit is contained in:
2026-10-22 22:47:48 +03:00
parent 39a6df8c09
commit f048a37df9
22 changed files with 1782 additions and 17 deletions
+6 -3
View File
@@ -314,9 +314,12 @@ describe('attachments (proxy upload)', () => {
it('serves unknown content variants as errors, not bytes', async () => {
const created = await ready(png);
const variant = (name: string) =>
http<ApiErrorBody>(`/api/v1/attachments/${created.id}/content?variant=${name}`, {
headers: bearer(alice.token),
});
http<ApiErrorBody>(
`/api/v1/attachments/${created.id}/content?variant=${name}`,
{
headers: bearer(alice.token),
},
);
expect((await variant('original')).response.status).toBe(200);
expectError(await variant('thumbnail'), 404, 'not_found');
expectError(await variant('bogus'), 400, 'invalid_request');