Skip to content

Commit fbd3bb7

Browse files
committed
Fix UI unit test failures
1 parent 017cf2c commit fbd3bb7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ui/tests/unit/components/view/ActionButton.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ import ActionButton from '@/components/view/ActionButton'
2424

2525
jest.mock('axios', () => mockAxios)
2626

27+
jest.mock('@/vue-app', () => ({
28+
vueProps: {
29+
$localStorage: {
30+
set: jest.fn((key, value) => {}),
31+
get: jest.fn((key) => {})
32+
}
33+
}
34+
}))
35+
2736
let router, store, i18n
2837
const state = {
2938
user: {

ui/tests/unit/views/compute/MigrateWizard.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ mocks = {
7373
})
7474
}
7575

76+
jest.mock('@/vue-app', () => ({
77+
vueProps: {
78+
$localStorage: {
79+
set: jest.fn((key, value) => {}),
80+
get: jest.fn((key) => {})
81+
}
82+
}
83+
}))
84+
7685
const factory = (opts = {}) => {
7786
router = opts.router || router
7887
i18n = opts.i18n || i18n

0 commit comments

Comments
 (0)