Update document-list.component.spec.ts

This commit is contained in:
shamoon 2024-04-21 10:03:28 -07:00
parent df46f53e38
commit 19d25a5342
2 changed files with 4 additions and 0 deletions

View File

@ -423,6 +423,8 @@ describe('DocumentListComponent', () => {
value: '20',
},
],
display_mode: DisplayMode.SMALL_CARDS,
display_fields: [DisplayField.TITLE],
}
jest.spyOn(savedViewService, 'getCached').mockReturnValue(of(view))
const queryParams = { view: view.id.toString() }

View File

@ -227,6 +227,8 @@ export class DocumentListComponent
filter_rules: this.list.filterRules,
sort_field: this.list.sortField,
sort_reverse: this.list.sortReverse,
display_mode: this.list.displayMode,
display_fields: this.activeDisplayFields,
}
this.savedViewService
.patch(savedView)