mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 07:01:17 +00:00
Enhancement: improved loading visuals (#8435)
This commit is contained in:
@@ -69,6 +69,7 @@ describe('TrashComponent', () => {
|
||||
})
|
||||
|
||||
it('should call correct service method on reload', () => {
|
||||
jest.useFakeTimers()
|
||||
const trashSpy = jest.spyOn(trashService, 'getTrash')
|
||||
trashSpy.mockReturnValue(
|
||||
of({
|
||||
@@ -78,6 +79,7 @@ describe('TrashComponent', () => {
|
||||
})
|
||||
)
|
||||
component.reload()
|
||||
jest.advanceTimersByTime(100)
|
||||
expect(trashSpy).toHaveBeenCalled()
|
||||
expect(component.documentsInTrash).toEqual(documentsInTrash)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user