diff options
Diffstat (limited to 'src/site/components/footer/Footer.test.js')
| -rw-r--r-- | src/site/components/footer/Footer.test.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/site/components/footer/Footer.test.js b/src/site/components/footer/Footer.test.js new file mode 100644 index 0000000..379f939 --- /dev/null +++ b/src/site/components/footer/Footer.test.js @@ -0,0 +1,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 chibisafe as the instance title', () => { + const wrapper = shallowMount(Component, { store, localVue }); + + const title = wrapper.find('h4'); + expect(title.text()).toBe('chibisafe'); + }); +}); |