Files
bigcapital/client/test/unit/specs/HelloWorld.spec.js
Ahmed Bouhuolia cb8c294d74 Initial commit.
2019-08-20 00:32:41 +02:00

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}}
})
})