Skip to content

Commit 3cea497

Browse files
committed
chore(*): update IgxSelection to use overrideTemplateUsingTestingModule
1 parent 62623e4 commit 3cea497

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ describe('IgxSelection', () => {
5656
const template = ` <input type="text" [igxTextSelection]="false" #select="igxTextSelection"
5757
(click)="select.trigger()" value="Some custom value!" />`;
5858

59-
TestBed.overrideComponent(TriggerTextSelectionOnClickComponent, {
60-
set: {
61-
template
62-
}
63-
});
59+
TestBed.overrideTemplateUsingTestingModule(TriggerTextSelectionOnClickComponent, template);
6460

6561
TestBed.compileComponents().then(() => {
6662
const fix = TestBed.createComponent(TriggerTextSelectionOnClickComponent);

0 commit comments

Comments
 (0)