Mock reports in Layout tests

This commit is contained in:
Angelina Filippova 2020-09-20 02:57:08 +03:00
parent 4a1092d2d6
commit f7e9e727ac
2 changed files with 4 additions and 0 deletions

View file

@ -15,6 +15,8 @@ localVue.use(Vuex)
localVue.use(VueRouter)
localVue.use(Element)
jest.mock('@/api/reports')
describe('Log out', () => {
let store
let router

View file

@ -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,