forked from AkkomaGang/admin-fe
Mock reports in Layout tests
This commit is contained in:
parent
4a1092d2d6
commit
f7e9e727ac
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,8 @@ localVue.use(Vuex)
|
||||||
localVue.use(VueRouter)
|
localVue.use(VueRouter)
|
||||||
localVue.use(Element)
|
localVue.use(Element)
|
||||||
|
|
||||||
|
jest.mock('@/api/reports')
|
||||||
|
|
||||||
describe('Log out', () => {
|
describe('Log out', () => {
|
||||||
let store
|
let store
|
||||||
let router
|
let router
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import app from '@/store/modules/app'
|
import app from '@/store/modules/app'
|
||||||
import errorLog from '@/store/modules/errorLog'
|
import errorLog from '@/store/modules/errorLog'
|
||||||
import permission from '@/store/modules/permission'
|
import permission from '@/store/modules/permission'
|
||||||
|
import reports from '@/store/modules/reports'
|
||||||
import tagsView from '@/store/modules/tagsView'
|
import tagsView from '@/store/modules/tagsView'
|
||||||
import user from '@/store/modules/user'
|
import user from '@/store/modules/user'
|
||||||
import getters from '@/store/getters'
|
import getters from '@/store/getters'
|
||||||
|
@ -10,6 +11,7 @@ export default {
|
||||||
app,
|
app,
|
||||||
errorLog,
|
errorLog,
|
||||||
permission,
|
permission,
|
||||||
|
reports,
|
||||||
tagsView,
|
tagsView,
|
||||||
user: {
|
user: {
|
||||||
...user,
|
...user,
|
||||||
|
|
Loading…
Reference in a new issue