qa-regulatory-gwj-vue/test/unit/specs/HelloWorld.spec.js

12 lines
354 B
JavaScript
Raw Permalink Normal View History

2023-11-07 10:04:37 +08:00
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')
})
})