提交 | 用户 | age | ||
36e1de | 1 | import Vue from 'vue' |
L | 2 | import HelloWorld from '@/components/HelloWorld' |
3 | ||
4 | describe('HelloWorld.vue', () => { | |
5 | it('should render correct contents', () => { | |
6 | const Constructor = Vue.extend(HelloWorld) | |
7 | const vm = new Constructor().$mount() | |
8 | expect(vm.$el.querySelector('.hello h1').textContent) | |
9 | ||
10 | }) | |
11 | }) |