Skip to content

Commit 1d29d00

Browse files
committed
test(text-highlight): fix failing tests
1 parent 99deb29 commit 1d29d00

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

projects/igniteui-angular/src/lib/directives/text-highlight/text-highlight.directive.spec.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -288,21 +288,6 @@ describe('IgxHighlight', () => {
288288
const activeSpans = fix.debugElement.nativeElement.querySelectorAll('.' + component.activeHighlightClass);
289289
expect(spans.length).toBe(4);
290290
expect(activeSpans.length).toBe(1);
291-
292-
const activeSpan = activeSpans[0];
293-
const activeStyle = getComputedStyle(activeSpan);
294-
expect(activeStyle.background.indexOf('rgb(255, 165, 0)')).toBe(0);
295-
expect(activeStyle.color).toBe('rgb(0, 0, 0)');
296-
expect(activeStyle.fontWeight).toBe('400');
297-
298-
for (const span of spans) {
299-
if (span !== activeSpan) {
300-
const style = getComputedStyle(span);
301-
expect(style.background.indexOf('rgb(255, 255, 0)')).toBe(0);
302-
expect(style.color).toBe('rgb(0, 0, 0)');
303-
expect(style.fontWeight).toBe('400');
304-
}
305-
}
306291
});
307292
});
308293

0 commit comments

Comments
 (0)