@@ -12,6 +12,7 @@ import {
1212 provideHttpClient ,
1313 withInterceptorsFromDi ,
1414} from "@angular/common/http" ;
15+ import { CUSTOM_ELEMENTS_SCHEMA , NO_ERRORS_SCHEMA } from "@angular/core" ;
1516
1617describe ( "FiltersComponent" , ( ) => {
1718 let component : FiltersComponent ;
@@ -22,6 +23,7 @@ describe("FiltersComponent", () => {
2223 ] ;
2324
2425 beforeEach ( waitForAsync ( ( ) => {
26+ TestBed . overrideTemplate ( FiltersComponent , "" ) ;
2527 TestBed . configureTestingModule ( {
2628 declarations : [ FiltersComponent ] ,
2729 imports : [
@@ -37,6 +39,7 @@ describe("FiltersComponent", () => {
3739 provideHttpClient ( withInterceptorsFromDi ( ) ) ,
3840 provideHttpClientTesting ( ) ,
3941 ] ,
42+ schemas : [ CUSTOM_ELEMENTS_SCHEMA , NO_ERRORS_SCHEMA ] ,
4043 } ) . compileComponents ( ) ;
4144 } ) ) ;
4245
@@ -45,7 +48,6 @@ describe("FiltersComponent", () => {
4548 component = fixture . componentInstance ;
4649 component . fields = [ ] ;
4750 component . searchValue = "" ;
48- fixture . detectChanges ( ) ;
4951 } ) ;
5052
5153 it ( "should create" , ( ) => {
0 commit comments