mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
test(platform): a share-token photo whose copy fails to build is a 404
This commit is contained in:
@@ -390,6 +390,11 @@ describe('applyPlatformUploads', () => {
|
||||
expect(refused.statusCode).toBe(404);
|
||||
expect(refused.body).toBe('Not found');
|
||||
|
||||
renditionFor.mockRejectedValue(new Error('storage down'));
|
||||
const failed = makeRes();
|
||||
await photoHandler()(ask, failed, next);
|
||||
expect(failed.statusCode).toBe(404);
|
||||
|
||||
const unwired = makeRes();
|
||||
await photoHandler(null)(ask, unwired, next);
|
||||
expect(unwired.statusCode).toBe(404);
|
||||
|
||||
Reference in New Issue
Block a user