From 93c336c17de8afee0361f7e2c52301a5158024e1 Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Tue, 23 Jul 2019 12:19:37 +0800 Subject: [PATCH] Fix UT issue about it should support pagination Signed-off-by: Yogi_Wang --- src/portal/lib/src/log/recent-log.component.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/portal/lib/src/log/recent-log.component.spec.ts b/src/portal/lib/src/log/recent-log.component.spec.ts index 84a033da3..39425c8b2 100644 --- a/src/portal/lib/src/log/recent-log.component.spec.ts +++ b/src/portal/lib/src/log/recent-log.component.spec.ts @@ -11,7 +11,7 @@ import { FilterComponent } from '../filter/filter.component'; import { click } from '../utils'; import { of } from 'rxjs'; -import { startWith, delay } from 'rxjs/operators'; +import { delay } from 'rxjs/operators'; describe('RecentLogComponent (inline template)', () => { let component: RecentLogComponent; @@ -127,7 +127,7 @@ describe('RecentLogComponent (inline template)', () => { })); // Will fail after upgrade to angular 6. todo: need to fix it. - xit('should support pagination', async(() => { + it('should support pagination', () => { fixture.detectChanges(); fixture.whenStable().then(() => { @@ -136,7 +136,7 @@ describe('RecentLogComponent (inline template)', () => { let el: HTMLButtonElement = fixture.nativeElement.querySelector('.pagination-next'); expect(el).toBeTruthy(); el.click(); - + jasmine.clock().tick(100); fixture.detectChanges(); fixture.whenStable().then(() => { @@ -147,7 +147,7 @@ describe('RecentLogComponent (inline template)', () => { expect(els.length).toEqual(4); }); }); - })); + }); it('should support filtering list by keywords', async(() => { fixture.detectChanges();