Commit 876933da authored by Killian Kemps's avatar Killian Kemps
Browse files

Fix Vue.js component unit test

parent 43aa0342
import Vue from 'vue';
import Hello from 'src/components/Hello';
import Login from 'src/components/Login';
describe('Hello.vue', () => {
describe('Login.vue', () => {
it('should render correct contents', () => {
const vm = new Vue({
el: document.createElement('div'),
render: (h) => h(Hello),
render: (h) => h(Login),
expect(vm.$el.querySelector('.hello h1').textContent)
.to.equal('Welcome to Your Vue.js App');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment