mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-17 11:21:29 +00:00
Update test to reflect new collection size
This commit is contained in:
1 parent
54b450d69f
commit
f3021c36a5
1 file changed
+2
-1
@@ -1282,6 +1282,7 @@ describe('BulkEditorComponent', () => {
|
||||
) // listAllFilteredIds
|
||||
|
||||
component.showConfirmationDialogs = false
|
||||
documentListViewService.collectionSize = 2
|
||||
fixture.detectChanges()
|
||||
jest
|
||||
.spyOn(documentListViewService, 'allSelected', 'get')
|
||||
@@ -1292,7 +1293,7 @@ describe('BulkEditorComponent', () => {
|
||||
)
|
||||
req.flush({ result: 'OK', task_id: 'delete-2' })
|
||||
// ids aren't known when all matching documents are selected, so no undo
|
||||
expect(trackSpy).toHaveBeenLastCalledWith('delete-2', 0, null)
|
||||
expect(trackSpy).toHaveBeenLastCalledWith("delete-2", 2, null)
|
||||
httpTestingController.match(
|
||||
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true`
|
||||
) // list reload
|
||||
|
||||
Reference in new issue
Block a user