Skip to content

Commit

Permalink
fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MajedAlaitwniCap committed Nov 1, 2023
1 parent 9d18235 commit aef7727
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit aef7727

Please sign in to comment.