diff options
| author | Pitu <[email protected]> | 2021-01-04 00:48:34 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-04 00:48:34 +0900 |
| commit | b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99 (patch) | |
| tree | 3f53f464b09a439958389bbd3652ebb66b33a4af /src/site | |
| parent | Update migration (diff) | |
| download | host.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.tar.xz host.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.zip | |
feat: add testing capabilities
Diffstat (limited to 'src/site')
| -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'); + }); +}); |