mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 09:50:21 +00:00
13 lines
349 B
JavaScript
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!')
|
|
})
|
|
})
|