Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Sep 3, 2024
1 parent 13043b3 commit a198405
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/analytics/testing/integration-tests/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function checkForEventCalls(retryCount = 0): Promise<PerformanceEntry[]> {
if (callsWithEvent.length === 0) {
return checkForEventCalls(retryCount + 1);
} else {
console.log("Events: ", JSON.stringify(callsWithEvent));
console.log('Events: ', JSON.stringify(callsWithEvent));
return callsWithEvent;
}
}
Expand All @@ -62,10 +62,12 @@ describe('FirebaseAnalytics Integration Smoke Tests', () => {
// This is required since gtag/logEvent behaviour is dependent on the session state; if an event has already been logged
// in a session, the event will be sent in the request payload instead of the query string.
beforeEach(() => {
document.cookie.split(";").forEach((cookie) => {
document.cookie = cookie.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/")
document.cookie.split(';').forEach(cookie => {
document.cookie = cookie
.replace(/^ +/, '')
.replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/');
});
})
});

describe('Using getAnalytics()', () => {
afterEach(() => deleteApp(app));
Expand Down

0 comments on commit a198405

Please sign in to comment.