add some api

This commit is contained in:
2018-05-27 17:10:30 +08:00
parent 8389b7dbaf
commit 90305d393a
33 changed files with 14627 additions and 57 deletions

View File

@@ -0,0 +1,11 @@
import Vue from 'vue'
import HelloWorld from '@/components/HelloWorld'
describe('HelloWorld.vue', () => {
it('should render correct contents', () => {
const Constructor = Vue.extend(HelloWorld)
const vm = new Constructor().$mount()
expect(vm.$el.querySelector('.hello h1').textContent)
.toEqual('Welcome to Your Vue.js App')
})
})