blob: a6965db0a6084b8b98a77215ef1fb0a5ecde39df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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')
})
})
|