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

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');
expect(vm.$el.querySelector('input[name="email"]').placeholder)
.to.equal('Email');
});
});
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