blob: 4f89b26e98df0f03c6467ac0a0cb8efa06da6fac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* eslint-disable no-undef */
import { shallowMount, createLocalVue } from '@vue/test-utils';
import Component from './Footer.vue';
import Vuex from 'vuex';
const localVue = createLocalVue();
localVue.use(Vuex);
describe('Footer.vue', () => {
const store = new Vuex.Store({
getters: {
'auth/isLoggedIn': () => false
},
state: {
config: {}
}
});
it('Should render Hostess as the instance title', () => {
const wrapper = shallowMount(Component, { store, localVue });
const title = wrapper.find('h4');
expect(title.text()).toBe('Hostess');
});
});
|