Skip to content

Commit

Permalink
fix: Sonar error of useless object
Browse files Browse the repository at this point in the history
  • Loading branch information
timwessman committed Mar 18, 2024
1 parent 10ebe82 commit 778bab4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('MatomoTracker', () => {

it('should initialise window._paq', () => {
// eslint-disable-next-line no-new
new MatomoTracker({
const tracker = new MatomoTracker({
urlBase: MOCK_URL_BASE,
siteId: 'test123',
srcUrl: 'test.js',
Expand All @@ -24,6 +24,7 @@ describe('MatomoTracker', () => {
},
});

expect(tracker).toBeDefined();
expect(window._paq).toEqual([
['setTrackerUrl', MOCK_TRACKER_URL],
['setSiteId', 'test123'],
Expand Down

0 comments on commit 778bab4

Please sign in to comment.