import { TestBed } from '@angular/core/testing' ; import { MATOMO_CONFIGURATION } from './matomo-configuration' ; import { MatomoInjector } from './matomo-injector.service' ; describe ( 'MatomoInjectorService' , ( ) => { beforeEach ( ( ) => TestBed . configureTestingModule ( { providers : [ { provide : MATOMO_CONFIGURATION , useValue : { trackers : [ ] , trackAppStarting : true , requireConsent : false , enableLinkTracking : true , enableLinkTrackingValue : false , enableRouteTracking : false , } , } , MatomoInjector , ] , } ) ) ; it ( 'should be created' , ( ) => { const service = TestBed . inject ( MatomoInjector ) ; expect ( service ) . toBeTruthy ( ) ; } ) ; } ) ;