Skip to content

Commit

Permalink
fix: tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Feb 9, 2024
1 parent 8814cb6 commit a5a8509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('FileThumbnail', () => {

it('renders FileIcon when thumbnail is not provided', () => {
const file = FilePreviewMother.createDefault({
metadata: FileMetadataMother.create({ type: new FileType('application/pdf') })
metadata: FileMetadataMother.createWithoutThumbnail({ type: new FileType('application/pdf') })
})

cy.customMount(<FileThumbnail file={file} />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { DatasetVersionMother } from '../../../component/dataset/domain/models/D
import { FilePaginationInfo } from '../../../../src/files/domain/models/FilePaginationInfo'
import { FilePreview } from '../../../../src/files/domain/models/FilePreview'
import { FilePublishingStatus } from '../../../../src/files/domain/models/FileVersion'
import { FileIngestStatus } from '../../../../src/files/domain/models/FileIngest'
import { FileIngest, FileIngestStatus } from '../../../../src/files/domain/models/FileIngest'

chai.use(chaiAsPromised)
const expect = chai.expect
Expand All @@ -44,7 +44,7 @@ const fileData = (id: number): FilePreview => {
canBeRequested: false,
requested: false
},
ingest: { status: FileIngestStatus.NONE, isInProgress: false },
ingest: new FileIngest(FileIngestStatus.NONE),
metadata: {
type: new FileType('text/plain'),
size: new FileSize(25, FileSizeUnit.BYTES),
Expand Down

0 comments on commit a5a8509

Please sign in to comment.