mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test2 for layouts/DashboardLayout.spec.js
This commit is contained in:
parent
952383792e
commit
f7629cf6c7
@ -1,6 +1,5 @@
|
|||||||
import { mount, RouterLinkStub } from '@vue/test-utils'
|
import { mount, RouterLinkStub } from '@vue/test-utils'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import flushPromises from 'flush-promises'
|
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
const mockStoreCommit = jest.fn()
|
const mockStoreCommit = jest.fn()
|
||||||
@ -51,7 +50,6 @@ describe('App', () => {
|
|||||||
|
|
||||||
describe('route requires authorization', () => {
|
describe('route requires authorization', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await flushPromises()
|
|
||||||
mocks.$route.meta.requiresAuth = true
|
mocks.$route.meta.requiresAuth = true
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user