Skip to content

Commit

Permalink
fix: use PublicationStatus enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Mar 12, 2025
1 parent f5e24ca commit ca0fb7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FileCard } from '@/sections/collection/collection-items-panel/items-lis
import { FileItemTypePreviewMother } from '@tests/component/files/domain/models/FileItemTypePreviewMother'
import { DateHelper } from '@/shared/helpers/DateHelper'
import { FileCardHelper } from '@/sections/collection/collection-items-panel/items-list/file-card/FileCardHelper'

import { PublicationStatus } from '@/shared/core/domain/models/PublicationStatus'
describe('FileCard', () => {
it('should render the card', () => {
const filePreview = FileItemTypePreviewMother.create()
Expand Down Expand Up @@ -42,7 +42,7 @@ describe('FileCard', () => {
})
it('should render the card if dateset is draft version', () => {
const filePreview = FileItemTypePreviewMother.create({
publicationStatuses: ['Draft']
publicationStatuses: [PublicationStatus.Draft]
})
cy.customMount(<FileCard filePreview={filePreview} />)

Expand Down

0 comments on commit ca0fb7b

Please sign in to comment.