From 5ea89d3575e2d12130234fbaa94d06108cc13a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 30 May 2025 22:10:05 +0800 Subject: [PATCH] remove obsolete code --- .../graphql/resolvers/images/imagesS3.spec.ts | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/backend/src/graphql/resolvers/images/imagesS3.spec.ts b/backend/src/graphql/resolvers/images/imagesS3.spec.ts index 37c393bb1..0cc31033f 100644 --- a/backend/src/graphql/resolvers/images/imagesS3.spec.ts +++ b/backend/src/graphql/resolvers/images/imagesS3.spec.ts @@ -205,29 +205,6 @@ describe('mergeImage', () => { }) }) - describe('given a `S3_PUBLIC_GATEWAY` configuration', () => { - const { mergeImage } = images({ - ...config, - S3_PUBLIC_GATEWAY: 'http://s3-public-gateway.com', - }) - - it('changes the domain of the URL to a server that could e.g. apply image transformations', async () => { - if (!imageInput.upload) { - throw new Error('Test imageInput was not setup correctly.') - } - const upload = await imageInput.upload - upload.filename = '/path/to/file-location/foo-bar-avatar.jpg' - imageInput.upload = Promise.resolve(upload) - await expect( - mergeImage(post, 'HERO_IMAGE', imageInput, { uploadCallback, deleteCallback }), - ).resolves.toMatchObject({ - url: expect.stringMatching( - new RegExp(`^http://s3-public-gateway.com/bucket/${uuid}-foo-bar-avatar.jpg`), - ), - }) - }) - }) - it('connects resource with image via given image type', async () => { await mergeImage(post, 'HERO_IMAGE', imageInput, { uploadCallback, deleteCallback }) const result = await neode.cypher(