From a1984054e6c8f88d064617b0545dc1af7b8355a4 Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Tue, 3 Sep 2024 14:03:17 -0400 Subject: [PATCH] Run formatting --- .../analytics/testing/integration-tests/integration.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/analytics/testing/integration-tests/integration.ts b/packages/analytics/testing/integration-tests/integration.ts index 7b6bce25df2..9a567b841b6 100644 --- a/packages/analytics/testing/integration-tests/integration.ts +++ b/packages/analytics/testing/integration-tests/integration.ts @@ -50,7 +50,7 @@ async function checkForEventCalls(retryCount = 0): Promise { if (callsWithEvent.length === 0) { return checkForEventCalls(retryCount + 1); } else { - console.log("Events: ", JSON.stringify(callsWithEvent)); + console.log('Events: ', JSON.stringify(callsWithEvent)); return callsWithEvent; } } @@ -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));