mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-29 13:48:09 -06:00
Fix: saved view sidebar heading not always visible (#7584)
This commit is contained in:
@@ -69,6 +69,16 @@ describe(`Additional service tests for SavedViewService`, () => {
|
||||
expect(service.sidebarViews).toHaveLength(3)
|
||||
})
|
||||
|
||||
it('should gracefully handle errors', () => {
|
||||
service.initialize()
|
||||
const req = httpTestingController.expectOne(
|
||||
`${environment.apiBaseUrl}${endpoint}/?page=1&page_size=100000`
|
||||
)
|
||||
req.error(new ErrorEvent('error'))
|
||||
expect(service.loading).toBeFalsy()
|
||||
expect(service.allViews).toHaveLength(0)
|
||||
})
|
||||
|
||||
it('should support patchMany', () => {
|
||||
subscription = service.patchMany(saved_views).subscribe()
|
||||
saved_views.forEach((saved_view) => {
|
||||
|
||||
Reference in New Issue
Block a user