From 68c6d09e43d45bf092e7e9a330a0b4345cd13aae Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 8 Apr 2021 13:59:35 +0200 Subject: [PATCH] linting --- frontend/src/views/Layout/DashboardLayout_gdd.spec.js | 10 ++++------ frontend/test/testSetup.js | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) 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) => {