更新
Dieser Commit ist enthalten in:
11
test/unit/specs/HelloWorld.spec.js
Normale Datei
11
test/unit/specs/HelloWorld.spec.js
Normale Datei
@@ -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')
|
||||
})
|
||||
})
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren