mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
lint fix test layouts/DashboardLayout.spec.js
This commit is contained in:
parent
1c2fb0220c
commit
0c28478390
@ -3,7 +3,7 @@ import flushPromises from 'flush-promises'
|
||||
import DashboardLayout from './DashboardLayout'
|
||||
|
||||
import { toastErrorSpy } from '@test/testSetup'
|
||||
import { async } from 'regenerator-runtime'
|
||||
// import { async } from 'regenerator-runtime'
|
||||
// import { nextTick } from 'vue/types/umd'
|
||||
|
||||
jest.useFakeTimers()
|
||||
@ -81,24 +81,20 @@ describe('DashboardLayout', () => {
|
||||
expect(wrapper.findComponent({ name: 'SkeletonOverview' }).exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
describe.skip('whiteout Skeleton', () => {
|
||||
beforeEach(async () => {
|
||||
await new Promise(res => setTimeout(res, 1500));
|
||||
// await jest.advanceTimersByTime(1500)
|
||||
// await new Promise((res) => setTimeout(res, 1500))
|
||||
// await jest.advanceTimersByTime(1500)
|
||||
// jest.useFakeTimers()
|
||||
// jest.runTimersToTime(2500)
|
||||
// await jest.runAllTimers()
|
||||
// await wrapper.vm.$nextTick()
|
||||
// await wrapper.setData({
|
||||
|
||||
// skeleton: false,
|
||||
|
||||
// })
|
||||
})
|
||||
|
||||
|
||||
|
||||
it('has a component Navbar', () => {
|
||||
expect(wrapper.findComponent({ name: 'Navbar' }).exists()).toBe(true)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user