diff --git a/test/private-api/media.e2e-spec.ts b/test/private-api/media.e2e-spec.ts index 7270661aa..c6c6e17ce 100644 --- a/test/private-api/media.e2e-spec.ts +++ b/test/private-api/media.e2e-spec.ts @@ -93,7 +93,7 @@ describe('Media', () => { const testImage = await fs.readFile('test/private-api/fixtures/test.png'); const downloadResponse = await request(app.getHttpServer()).get(path); expect(downloadResponse.body).toEqual(testImage); - // Remove /upload/ from path as we just need the filename. + // Remove /uploads/ from path as we just need the filename. const fileName = path.replace('/uploads/', ''); // delete the file afterwards await fs.unlink(join(uploadPath, fileName)); diff --git a/test/public-api/media.e2e-spec.ts b/test/public-api/media.e2e-spec.ts index d8c3f3b63..9ae4379d8 100644 --- a/test/public-api/media.e2e-spec.ts +++ b/test/public-api/media.e2e-spec.ts @@ -89,7 +89,7 @@ describe('Media', () => { const testImage = await fs.readFile('test/public-api/fixtures/test.png'); const downloadResponse = await request(app.getHttpServer()).get(path); expect(downloadResponse.body).toEqual(testImage); - // Remove /upload/ from path as we just need the filename. + // Remove /uploads/ from path as we just need the filename. const fileName = path.replace('/uploads/', ''); // delete the file afterwards await fs.unlink(join(uploadPath, fileName));