license import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ; import { RouterTestingModule } from '@angular/router/testing' ; import { createComponentFactory , Spectator } from '@ngneat/spectator/jest' ; import { SettingsHeaderComponent } from './settings-header.component' ; describe ( 'SettingsHeaderComponent' , ( ) => { let spectator ; const createComponent = createComponentFactory ( { component : SettingsHeaderComponent , imports : [ RouterTestingModule ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] , } ) ; it ( 'should create' , ( ) => { spectator = createComponent ( ) ; expect ( spectator . component ) . toBeTruthy ( ) ; } ) ; } ) ;