Files
vue-chartjs/test/unit/specs/Hello.spec.js
Jakub Juszczak 0820ba63b3 🎉 Initial commit
2016-06-26 15:24:29 +02:00

13 lines
349 B
JavaScript

import Vue from 'vue'
import Hello from 'src/components/Hello'
describe('Hello.vue', () => {
it('should render correct contents', () => {
const vm = new Vue({
template: '<div><hello></hello></div>',
components: { Hello }
}).$mount()
expect(vm.$el.querySelector('.hello h1').textContent).to.contain('Hello World!')
})
})