From b4da8d07d1049e1af119818e16db71efd497fee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Sun, 5 Feb 2023 04:47:05 +0200 Subject: [PATCH] Fix the asset-upload tests after changes --- .../immich/src/config/asset-upload.config.spec.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/apps/immich/src/config/asset-upload.config.spec.ts b/server/apps/immich/src/config/asset-upload.config.spec.ts index 07730e0b99..f456bbbc55 100644 --- a/server/apps/immich/src/config/asset-upload.config.spec.ts +++ b/server/apps/immich/src/config/asset-upload.config.spec.ts @@ -66,24 +66,12 @@ describe('assetUploadOption', () => { expect(callback).toHaveBeenCalledWith(null, true); }); - it('should allow .srw unrecognized', () => { - const file = { mimetype: 'application/octet-stream', originalname: 'test.srw' } as any; - fileFilter(mock.userRequest, file, callback); - expect(callback).toHaveBeenCalledWith(null, true); - }); - it('should allow .raf recognized', () => { const file = { mimetype: 'image/x-fuji-raf', originalname: 'test.raf' } as any; fileFilter(mock.userRequest, file, callback); expect(callback).toHaveBeenCalledWith(null, true); }); - it('should allow .raf unrecognized', () => { - const file = { mimetype: 'application/octet-stream', originalname: 'test.raf' } as any; - fileFilter(mock.userRequest, file, callback); - expect(callback).toHaveBeenCalledWith(null, true); - }); - it('should allow .srw recognized', () => { const file = { mimetype: 'image/x-samsung-srw', originalname: 'test.srw' } as any; fileFilter(mock.userRequest, file, callback);