Skip to content

Commit

Permalink
fix: add Injectable decorator to MatomoTestingTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Apr 9, 2024
1 parent 7725548 commit 5d052bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/ngx-matomo-client/testing/matomo-testing-tracker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Injectable } from '@angular/core';
import { MatomoInstance, MatomoTracker } from 'ngx-matomo-client/core';
import { MatomoTestingInstance } from './matomo-testing-instance';

Expand All @@ -10,6 +11,7 @@ import { MatomoTestingInstance } from './matomo-testing-instance';
* All <i>getter</i> methods will immediately resolve to an <i>empty value</i>.
* This can be customized by setting a custom Matomo instance with {@link setMatomoInstance setMatomoInstance()}.
*/
@Injectable()
export class MatomoTestingTracker extends MatomoTracker {
#fakeInstance: MatomoInstance = new MatomoTestingInstance();
#paq: unknown[][] = [];
Expand Down

0 comments on commit 5d052bf

Please sign in to comment.