Fix tests

This commit is contained in:
Maxim Filippov 2019-09-27 19:40:25 +03:00
parent 8956e68fa1
commit 3daf35d0b0
6 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,9 @@
export async function getNodeInfo(authHost) {
const data = {
metadata: {
mailerEnabled: true
}
}
return Promise.resolve({ data })
}

View file

@ -10,7 +10,7 @@ const service = axios.create({
service.interceptors.response.use(
response => response,
error => {
console.log('Error ' + error)
console.log(`Error ${error}`)
console.log(error.response.data)
// If there's an "error" property in the json, use it

View file

@ -16,6 +16,7 @@ localVue.use(Vuex)
localVue.use(VueRouter)
localVue.use(Element)
jest.mock('@/api/nodeInfo')
jest.mock('@/api/login')
describe('Login', () => {

View file

@ -14,6 +14,7 @@ const localVue = createLocalVue()
localVue.use(Vuex)
localVue.use(Element)
jest.mock('@/api/nodeInfo')
jest.mock('@/api/users')
describe('Search and filter users', () => {

View file

@ -13,6 +13,7 @@ const localVue = createLocalVue()
localVue.use(Vuex)
localVue.use(Element)
jest.mock('@/api/nodeInfo')
jest.mock('@/api/users')
describe('Apply users actions to multiple users', () => {

View file

@ -13,6 +13,7 @@ const localVue = createLocalVue()
localVue.use(Vuex)
localVue.use(Element)
jest.mock('@/api/nodeInfo')
jest.mock('@/api/users')
describe('Filters users', () => {