TSK-1121: Corrected HTML to fit old unit tests
This commit is contained in:
parent
d991db248c
commit
9205d87367
|
|
@ -13,11 +13,9 @@
|
||||||
<a *ngIf="hasItems" (click)="changeToPage(page?.totalPages)" aria-label="Last">Last</a>
|
<a *ngIf="hasItems" (click)="changeToPage(page?.totalPages)" aria-label="Last">Last</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="footer pull-right">
|
<span class="footer pull-right" [hidden]="numberOfItems === 0">
|
||||||
<span [hidden]="numberOfItems === 0">
|
<i [innerHTML]="getPagesTextToShow()"></i>
|
||||||
<i [innerHTML]="getPagesTextToShow()"></i>
|
</span>
|
||||||
</span>
|
<span class="footer pull-right" [hidden]="numberOfItems !== 0 && page.totalElements !== 0">
|
||||||
<span [hidden]="numberOfItems !== 0 && page.totalElements !== 0">
|
<i>Loading...</i>
|
||||||
<i>Loading...</i>
|
</span>
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ describe('PaginationComponent', () => {
|
||||||
|
|
||||||
it('should create', () => {
|
it('should create', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
expect(debugElement.querySelectorAll('#wb-pagination > li').length).toBe(2);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create 3 pages if total pages are 3', () => {
|
it('should create 3 pages if total pages are 3', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue