mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: fix unit tests (#9798)
This commit is contained in:
parent
017cf2c367
commit
96610603ca
@ -23,6 +23,16 @@ import mockData from '../../../mockData/ActionButton.mock.json'
|
|||||||
import ActionButton from '@/components/view/ActionButton'
|
import ActionButton from '@/components/view/ActionButton'
|
||||||
|
|
||||||
jest.mock('axios', () => mockAxios)
|
jest.mock('axios', () => mockAxios)
|
||||||
|
jest.mock('@/vue-app', () => ({
|
||||||
|
vueProps: {
|
||||||
|
$localStorage: {
|
||||||
|
set: jest.fn((key, value) => {}),
|
||||||
|
get: jest.fn((key) => {
|
||||||
|
return null
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
|
||||||
let router, store, i18n
|
let router, store, i18n
|
||||||
const state = {
|
const state = {
|
||||||
|
|||||||
@ -23,6 +23,16 @@ import mockData from '../../../mockData/MigrateWizard.mock'
|
|||||||
import MigrateWizard from '@/views/compute/MigrateWizard'
|
import MigrateWizard from '@/views/compute/MigrateWizard'
|
||||||
|
|
||||||
jest.mock('axios', () => mockAxios)
|
jest.mock('axios', () => mockAxios)
|
||||||
|
jest.mock('@/vue-app', () => ({
|
||||||
|
vueProps: {
|
||||||
|
$localStorage: {
|
||||||
|
set: jest.fn((key, value) => {}),
|
||||||
|
get: jest.fn((key) => {
|
||||||
|
return null
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
|
||||||
let i18n
|
let i18n
|
||||||
let store
|
let store
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user