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(Element)
|
||||
|
||||
jest.mock('@/api/reports')
|
||||
|
||||
describe('Log out', () => {
|
||||
let store
|
||||
let router
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import app from '@/store/modules/app'
|
||||
import errorLog from '@/store/modules/errorLog'
|
||||
import permission from '@/store/modules/permission'
|
||||
import reports from '@/store/modules/reports'
|
||||
import tagsView from '@/store/modules/tagsView'
|
||||
import user from '@/store/modules/user'
|
||||
import getters from '@/store/getters'
|
||||
|
@ -10,6 +11,7 @@ export default {
|
|||
app,
|
||||
errorLog,
|
||||
permission,
|
||||
reports,
|
||||
tagsView,
|
||||
user: {
|
||||
...user,
|
||||
|
|
Loading…
Reference in a new issue