Skip to content

Commit

Permalink
Fixed unit tests following the matomo statistics update
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Nov 28, 2024
1 parent ce1a073 commit 64a939c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { getMockThemeService } from './shared/mocks/theme-service.mock';
import { BreadcrumbsService } from './breadcrumbs/breadcrumbs.service';
import { APP_CONFIG } from '../config/app-config.interface';
import { environment } from '../environments/environment';
import { Angulartics2Matomo } from 'angulartics2';

let comp: AppComponent;
let fixture: ComponentFixture<AppComponent>;
Expand Down Expand Up @@ -73,6 +74,7 @@ describe('App component', () => {
{ provide: NativeWindowService, useValue: new NativeWindowRef() },
{ provide: MetadataService, useValue: new MetadataServiceMock() },
{ provide: Angulartics2DSpace, useValue: new AngularticsProviderMock() },
{ provide: Angulartics2Matomo, useValue: new AngularticsProviderMock() },
{ provide: AuthService, useValue: new AuthServiceMock() },
{ provide: Router, useValue: new RouterMock() },
{ provide: ActivatedRoute, useValue: new MockActivatedRoute() },
Expand Down
4 changes: 0 additions & 4 deletions src/app/footer/footer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ describe('Footer component', () => {
fixture = TestBed.createComponent(FooterComponent);

comp = fixture.componentInstance; // component test instance

// query for the title <p> by CSS element selector
de = fixture.debugElement.query(By.css('p'));
el = de.nativeElement;
});

it('should create footer', inject([FooterComponent], (app: FooterComponent) => {
Expand Down

0 comments on commit 64a939c

Please sign in to comment.