import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { compassServiceMock } from '../../../mocks/modules/compass/compass.service.mock' ; import { contentSettingsServiceMock } from '../../../mocks/modules/content-settings/content-settings.service.mock' ; import { MockService } from '../../../utils/mock' ; import { CompassService } from '../../compass/compass.service' ; import { DiscoveryTagsService } from '../../discovery/tags/tags.service' ; import { TagSettingsService } from '../../tag-settings/tag-settings.service' ; import { ContentSettingsService } from '../content-settings.service' ; import { ContentSettingsComponent } from './content-settings.component' ; describe ( 'ContentSettingsComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { declarations : [ ContentSettingsComponent ] , providers : [ { provide : ContentSettingsService , useValue : contentSettingsServiceMock , } , { provide : CompassService , useValue : compassServiceMock , } , { provide : TagSettingsService , useValue : MockService ( TagSettingsService ) , } , { provide : DiscoveryTagsService , useValue : MockService ( DiscoveryTagsService ) , } , ] , } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ContentSettingsComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;