import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { MATOMO_CONFIGURATION , MatomoTracker } from 'ngx-matomo' ; import { ECommerceComponent } from './e-commerce.component' ; describe ( 'ECommerceComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { providers : [ { provide : MATOMO_CONFIGURATION , useValue : { trackers : [ ] , trackAppStarting : true , requireConsent : false , enableLinkTracking : true , enableLinkTrackingValue : false , enableRouteTracking : false , } , } , MatomoTracker , ] , declarations : [ ECommerceComponent ] , } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ECommerceComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;