fix integration tests and paths for client tests

This commit is contained in:
Matteo Pagliazzi
2019-10-03 17:40:38 +02:00
parent d19b3857ee
commit 2a4e103812
37 changed files with 50 additions and 126 deletions

View File

@@ -0,0 +1,19 @@
import Vue from 'vue';
import DrawerComponent from '@/components/ui/drawer.vue';
describe('DrawerComponent', () => {
it('sets the correct default data', () => {
expect(DrawerComponent.data).to.be.a('function');
const defaultData = DrawerComponent.data();
expect(defaultData.open).to.be.true;
});
it('renders the correct title', () => {
const Ctor = Vue.extend(DrawerComponent);
const vm = new Ctor({propsData: {
title: 'My title',
}}).$mount();
expect(vm.$el.textContent).to.be.equal('My title');
});
});