Skip to content

Commit 2d1b9ea

Browse files
committed
Missing trailing comma
1 parent 5a0bfda commit 2d1b9ea

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

src/app/home-page/recent-item-list/recent-item-list.component.spec.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,9 @@ describe('RecentItemListComponent', () => {
7373
if (entityTypes?.length) {
7474
extraParams['f.entityType'] = entityTypes.map(type => `${type},equals`);
7575
}
76-
7776
component.onLoadMore();
7877

79-
expect(paginationService.updateRouteWithUrl).toHaveBeenCalledWith(
80-
'search-page-configuration',
81-
['search'],
82-
{
83-
sortField: environment.homePage.recentSubmissions.sortField,
84-
sortDirection: 'DESC',
85-
page: 1,
86-
},
87-
extraParams
88-
);
78+
expect(paginationService.updateRouteWithUrl).toHaveBeenCalledWith('search-page-configuration', ['search'], { sortField: environment.homePage.recentSubmissions.sortField, sortDirection: 'DESC', page: 1, }, extraParams);
8979
});
9080

9181
it('should clear pagination on destroy', () => {
@@ -96,4 +86,4 @@ describe('RecentItemListComponent', () => {
9686
expect(paginationService.clearPagination).toHaveBeenCalledWith(component.paginationConfig.id);
9787
});
9888

99-
});
89+
});

src/app/home-page/recent-item-list/recent-item-list.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class RecentItemListComponent implements OnInit, OnDestroy {
115115
pagination: this.paginationConfig,
116116
dsoTypes: [DSpaceObjectType.ITEM],
117117
sort: this.sortConfig,
118-
filters: filters
118+
filters: filters,
119119
}),
120120
undefined,
121121
undefined,
@@ -147,8 +147,7 @@ export class RecentItemListComponent implements OnInit, OnDestroy {
147147
sortDirection: 'DESC' as SortDirection,
148148
page: 1,
149149
},
150-
extraParams
151-
);
150+
extraParams);
152151
}
153152

154153
get placeholderFontClass(): string {

0 commit comments

Comments
 (0)