This commit is contained in:
Moriz Wahl 2021-04-08 13:59:35 +02:00
parent f61a92998f
commit 68c6d09e43
2 changed files with 4 additions and 7 deletions

View File

@ -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')
})

View File

@ -17,7 +17,6 @@ import VueQrcode from 'vue-qrcode'
import clickOutside from '@/directives/click-ouside.js'
global.localVue = createLocalVue()
Object.keys(rules).forEach((rule) => {