Skip to content

Commit bda96ba

Browse files
committed
test(igxGridFiltering): invoke done callback into setTimeout
Closes #1501
1 parent a559bd1 commit bda96ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/grid/grid-filtering-ui.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ describe('IgxGrid - Filtering actions', () => {
11911191
expect(grid.onFilteringDone.emit).toHaveBeenCalledWith(args);
11921192
});
11931193

1194-
it('When filter column with value 0 and dataType number, filtering icon class indicator should be applied', async(() => {
1194+
it('When filter column with value 0 and dataType number, filtering icon class indicator should be applied', ((done) => {
11951195
const fix = TestBed.createComponent(IgxGridFilteringComponent);
11961196
fix.detectChanges();
11971197

@@ -1221,6 +1221,7 @@ describe('IgxGrid - Filtering actions', () => {
12211221
fix.detectChanges();
12221222
setTimeout(() => {
12231223
expect(gridFilteringToggle.nativeElement.classList.contains('igx-filtering__toggle--filtered')).toBeTruthy();
1224+
done();
12241225
}, 500);
12251226
});
12261227
}));

0 commit comments

Comments
 (0)