updated README.md

This commit is contained in:
Pedro G. Galaviz
2019-11-28 21:17:35 -06:00
parent 4a99a58085
commit 6b71d8be99
3 changed files with 25 additions and 12 deletions

23
tests/unit/basic.spec.js Normal file
View File

@@ -0,0 +1,23 @@
import { mount, shallowMount } from '@vue/test-utils'
import App from '../../docs-src/App.vue'
import Docs from '../../docs-src/Docs.vue'
describe('App.vue', () => {
it('renders Home page', () => {
const msg = 'vue-highlights'
const wrapper = mount(App, {
stubs: ['router-link', 'router-view']
})
expect(wrapper.text()).toMatch(msg)
})
})
describe('Docs.vue', () => {
it('renders Docs page', () => {
const msg = 'Documentation'
const wrapper = shallowMount(Docs, {
stubs: ['router-link']
})
expect(wrapper.text()).toMatch(msg)
})
})