Skip to content

Commit

Permalink
fixed UT
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrishac committed Jan 12, 2021
1 parent 038d497 commit aae7f66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions integrations/Amplitude/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ class Amplitude {
};
e.amplitude = n;
})(window, document);
} else {
window.amplitude = amplitude;
}

const initOptions = {
Expand Down
6 changes: 3 additions & 3 deletions integrations/GA/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GA.prototype.loadScript = jest.fn();
describe("GA init tests", () => {
let googleAnalytics;
beforeEach(() => {
googleAnalytics = new GA({ trackingID: "UA-143161493-8" });
googleAnalytics = new GA({ trackingID: "UA-143161493-8" }, {loadIntegration: true});
googleAnalytics.init();
});

Expand Down Expand Up @@ -58,7 +58,7 @@ describe("GA init tests", () => {
"resetCustomDimensionsOnPage": "testDimension"
}
]
});
}, {loadIntegration: true});
googleAnalytics.init();
window.ga = jest.fn();
});
Expand Down Expand Up @@ -104,7 +104,7 @@ describe("GA init tests", () => {
dimensions: [],
metrics: [],
contentGroupings: [],
});
}, {loadIntegration: true});
googleAnalytics.init();
window.ga = jest.fn();
});
Expand Down

0 comments on commit aae7f66

Please sign in to comment.