Skip to content

Commit

Permalink
BC-5048 - fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWaysDP committed Sep 29, 2023
1 parent 391d5b1 commit b5fde1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { readableStreamWithFileTypeFactory } from '@shared/testing/factory/reada
import { LegacyLogger } from '@src/core/logger';
import { MimeType } from 'file-type';
import FileType from 'file-type-cjs/file-type-cjs-index';
import { Readable } from 'stream';
import { PassThrough, Readable } from 'stream';
import { FileRecordParams } from '../controller/dto';
import { FileDto } from '../dto';
import { FileRecord, FileRecordParentType } from '../entity';
Expand Down Expand Up @@ -176,7 +176,7 @@ describe('FilesStorageService upload methods', () => {

await service.uploadFile(userId, params, file);

expect(getMimeTypeSpy).toHaveBeenCalledWith(file.data);
expect(getMimeTypeSpy).toHaveBeenCalledWith(expect.any(PassThrough));
});

it('should call getFileRecordsOfParent with correct params', async () => {
Expand Down

0 comments on commit b5fde1a

Please sign in to comment.