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 15, 2024
1 parent 62444f7 commit 78ae0af
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,19 @@ import useAvailableProviders from '@/js/hooks/useAvailableProviders'

import TemplateForm from '../TemplateForm'

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

vi.mock('@/js/utils/createTemplate')
vi.mock('@/js/utils/errorLogger')
vi.mock('@/js/utils/getTemplate')
vi.mock('@/js/utils/updateTemplate')
vi.mock('@/js/components/ErrorBanner/ErrorBanner')
vi.mock('@/js/components/FormNavigation/FormNavigation')

const getConfig = () => staticConfig

const ummCVersion = getConfig().ummVersions.ummC

vi.mock('@/js/hooks/useAvailableProviders')
useAvailableProviders.mockReturnValue({
providerIds: ['MMT_1', 'MMT_2']
Expand Down Expand Up @@ -503,7 +509,7 @@ describe('TemplateForm', () => {
},
nativeId: 'MMT_mock-uuid',
providerId: 'MMT_2',
ummVersion: '1.18.1'
ummVersion: `${ummCVersion}`
}
},
result: {
Expand Down

0 comments on commit 78ae0af

Please sign in to comment.