diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js index 3aa5cb124..1983211f2 100644 --- a/frontend/src/views/Layout/DashboardLayout_gdd.spec.js +++ b/frontend/src/views/Layout/DashboardLayout_gdd.spec.js @@ -11,11 +11,10 @@ const localVue = global.localVue const router = new VueRouter({ routes }) - const transitionStub = () => ({ - render (h) { + render(h) { return this.$options._renderChildren - } + }, }) describe('DashboardLayoutGdd', () => { @@ -73,17 +72,16 @@ describe('DashboardLayoutGdd', () => { }) describe('navigation bar', () => { - let navbar beforeEach(() => { navbar = wrapper.findAll('ul.navbar-nav').at(0) }) - + it('has five items in the navbar', () => { expect(navbar.findAll('ul > li')).toHaveLength(5) }) - + it('has first item "send" in navbar', () => { expect(navbar.findAll('ul > li').at(0).text()).toEqual('sent') }) diff --git a/frontend/test/testSetup.js b/frontend/test/testSetup.js index 6c070bcaf..8d0e01c1e 100644 --- a/frontend/test/testSetup.js +++ b/frontend/test/testSetup.js @@ -17,7 +17,6 @@ import VueQrcode from 'vue-qrcode' import clickOutside from '@/directives/click-ouside.js' - global.localVue = createLocalVue() Object.keys(rules).forEach((rule) => {