diff --git a/apps/server/src/modules/h5p-editor/service/contentStorage.service.spec.ts b/apps/server/src/modules/h5p-editor/service/contentStorage.service.spec.ts index 5cdcced56df..475e51c7230 100644 --- a/apps/server/src/modules/h5p-editor/service/contentStorage.service.spec.ts +++ b/apps/server/src/modules/h5p-editor/service/contentStorage.service.spec.ts @@ -642,9 +642,11 @@ describe('ContentStorage', () => { describe('WHEN file exists', () => { it('should S3ClientAdapter.get with range', async () => { - const { testRanges, contentID, filename, user } = setup(); + const { testRanges, contentID, filename, user, fileResponse } = setup(); for (const range of testRanges) { + s3ClientAdapter.get.mockResolvedValueOnce(fileResponse); + // eslint-disable-next-line no-await-in-loop await service.getFileStream(contentID, filename, user, range[0], range[1]);