Basic skeleton
This commit is contained in:
commit
191c02af1e
38 changed files with 6754 additions and 0 deletions
13
test/unit/specs/Hello.spec.js
Normal file
13
test/unit/specs/Hello.spec.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import Vue from 'vue'
|
||||
import Hello from 'src/components/Hello'
|
||||
|
||||
describe('Hello.vue', () => {
|
||||
it('should render correct contents', () => {
|
||||
const vm = new Vue({
|
||||
el: document.createElement('div'),
|
||||
render: (h) => h(Hello)
|
||||
})
|
||||
expect(vm.$el.querySelector('.hello h1').textContent)
|
||||
.to.equal('Welcome to Your Vue.js App')
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue