You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
356 B
13 lines
356 B
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')
|
|
})
|
|
})
|
|
|