Skip to content

Commit

Permalink
Revert "MMT-3903: destructuring and test fix"
Browse files Browse the repository at this point in the history
This reverts commit 481c925.
  • Loading branch information
mandyparson committed Nov 14, 2024
1 parent 5b9421e commit d8b19ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ import useAvailableProviders from '@/js/hooks/useAvailableProviders'

import TemplateForm from '../TemplateForm'

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

const getConfig = () => staticConfig

const { ummVersions } = getConfig()

const { ummC: ummCVersion } = ummVersions

vi.mock('@/js/utils/createTemplate')
vi.mock('@/js/utils/errorLogger')
vi.mock('@/js/utils/getTemplate')
Expand Down Expand Up @@ -511,7 +503,7 @@ describe('TemplateForm', () => {
},
nativeId: 'MMT_mock-uuid',
providerId: 'MMT_2',
ummVersion: `${ummCVersion}`
ummVersion: '1.18.1'
}
},
result: {
Expand Down Expand Up @@ -565,7 +557,7 @@ describe('TemplateForm', () => {
},
nativeId: 'MMT_mock-uuid',
providerId: 'MMT_2',
ummVersion: `${ummCVersion}`
ummVersion: '1.18.1'
}
},
error: new Error('An error occurred')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ vi.mock('../../../utils/deleteTemplate')

const getConfig = () => staticConfig

const { ummVersions } = getConfig()

const { ummC: ummCVersion } = ummVersions
const ummCVersion = getConfig().ummVersions.ummC

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

0 comments on commit d8b19ad

Please sign in to comment.