test2 for layouts/DashboardLayout.spec.js

This commit is contained in:
ogerly 2022-10-24 12:53:52 +02:00
parent 952383792e
commit f7629cf6c7

View File

@ -1,6 +1,5 @@
import { mount, RouterLinkStub } from '@vue/test-utils'
import App from './App'
import flushPromises from 'flush-promises'
const localVue = global.localVue
const mockStoreCommit = jest.fn()
@ -51,7 +50,6 @@ describe('App', () => {
describe('route requires authorization', () => {
beforeEach(async () => {
await flushPromises()
mocks.$route.meta.requiresAuth = true
wrapper = Wrapper()
})