File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/analytics/testing/integration-tests Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ async function checkForEventCalls(retryCount = 0): Promise<PerformanceEntry[]> {
50
50
if ( callsWithEvent . length === 0 ) {
51
51
return checkForEventCalls ( retryCount + 1 ) ;
52
52
} else {
53
- console . log ( " Events: " , JSON . stringify ( callsWithEvent ) ) ;
53
+ console . log ( ' Events: ' , JSON . stringify ( callsWithEvent ) ) ;
54
54
return callsWithEvent ;
55
55
}
56
56
}
@@ -62,10 +62,12 @@ describe('FirebaseAnalytics Integration Smoke Tests', () => {
62
62
// This is required since gtag/logEvent behaviour is dependent on the session state; if an event has already been logged
63
63
// in a session, the event will be sent in the request payload instead of the query string.
64
64
beforeEach ( ( ) => {
65
- document . cookie . split ( ";" ) . forEach ( ( cookie ) => {
66
- document . cookie = cookie . replace ( / ^ + / , "" ) . replace ( / = .* / , "=;expires=" + new Date ( ) . toUTCString ( ) + ";path=/" )
65
+ document . cookie . split ( ';' ) . forEach ( cookie => {
66
+ document . cookie = cookie
67
+ . replace ( / ^ + / , '' )
68
+ . replace ( / = .* / , '=;expires=' + new Date ( ) . toUTCString ( ) + ';path=/' ) ;
67
69
} ) ;
68
- } )
70
+ } ) ;
69
71
70
72
describe ( 'Using getAnalytics()' , ( ) => {
71
73
afterEach ( ( ) => deleteApp ( app ) ) ;
You can’t perform that action at this time.
0 commit comments