Update test to reflect new collection size

This commit is contained in:
shamoon authored and GitHub committed 2026-11-17 02:58:38 -08:00
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