mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
12 lines
462 B
JavaScript
12 lines
462 B
JavaScript
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)
|
|
{{#if_eq runner "karma"}}.to.equal('Welcome to Your Vue.js App'){{/if_eq}}{{#if_eq runner "jest"}}.toEqual('Welcome to Your Vue.js App'){{/if_eq}}
|
|
})
|
|
})
|