food/test/unit/specs/Hello.spec.js

12 lines
342 B
JavaScript
Raw Permalink Normal View History

2017-09-19 02:41:00 +02:00
import Vue from 'vue';
import Hello from '@/components/Hello';
describe('Hello.vue', () => {
it('should render correct contents', () => {
const Constructor = Vue.extend(Hello);
const vm = new Constructor().$mount();
expect(vm.$el.querySelector('.hello h1').textContent)
.to.equal('Welcome to Your Vue.js App');
});
});