mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5078] Start Task e2e (#5485)
* [ADF-5078] Start Task e2e * * improved test * * fixed import
This commit is contained in:
@@ -332,5 +332,19 @@ describe('PaginationComponent', () => {
|
||||
|
||||
expect(component.current).toBe(1);
|
||||
});
|
||||
|
||||
it('should not show pagination when external component count is zero', () => {
|
||||
const pagination: Pagination = {};
|
||||
const customComponent = <PaginatedComponent> {
|
||||
pagination: new BehaviorSubject<Pagination>({ count: 0, maxItems: 5, totalItems: 5 })
|
||||
};
|
||||
component.target = customComponent;
|
||||
component.ngOnInit();
|
||||
customComponent.pagination.next(pagination);
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(fixture.debugElement.nativeElement.querySelector('.adf-pagination__block')).toBeNull();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user