Skip to content

Commit

Permalink
MMT-3903: Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mandyparson committed Nov 14, 2024
1 parent 0286cea commit 087f9d1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ import errorLogger from '../../../utils/errorLogger'
import getTemplate from '../../../utils/getTemplate'
import { INGEST_DRAFT } from '../../../operations/mutations/ingestDraft'

import staticConfig from '../../../../../../static.config.json'

vi.mock('../../../utils/getTemplate')
vi.mock('../../ErrorBanner/ErrorBanner')
vi.mock('../../PreviewProgress/PreviewProgress')
vi.mock('../../../utils/errorLogger')
vi.mock('../../../utils/deleteTemplate')

const getConfig = () => staticConfig

const ummCVersion = getConfig().ummVersions.ummC

const setup = () => {
const user = userEvent.setup()

Expand Down Expand Up @@ -365,7 +371,7 @@ describe('TemplatePreview', () => {
},
nativeId: 'MMT_mock-uuid',
providerId: 'MMT_2',
ummVersion: '1.18.1'
ummVersion: `${ummCVersion}`
}
},
result: {
Expand Down Expand Up @@ -407,7 +413,7 @@ describe('TemplatePreview', () => {
},
nativeId: 'MMT_mock-uuid',
providerId: 'MMT_2',
ummVersion: '1.18.1'
ummVersion: `${ummCVersion}`
}
},
error: new Error('An error occurred')
Expand Down

0 comments on commit 087f9d1

Please sign in to comment.