mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 09:01:21 +00:00
Enhancement: optimize tasks / stats reload (#7402)
This commit is contained in:
@@ -71,6 +71,13 @@ describe('StatisticsWidgetComponent', () => {
|
||||
expect(reloadSpy).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('should not call statistics endpoint on reload if already loading', () => {
|
||||
httpTestingController.expectOne(`${environment.apiBaseUrl}statistics/`)
|
||||
component.loading = true
|
||||
component.reload()
|
||||
httpTestingController.expectNone(`${environment.apiBaseUrl}statistics/`)
|
||||
})
|
||||
|
||||
it('should display inbox link with count', () => {
|
||||
const mockStats = {
|
||||
documents_total: 200,
|
||||
|
||||
Reference in New Issue
Block a user