@@ -32,6 +32,7 @@ import { mergeStrings } from '../utils/string_merger';
32
32
import { FirebaseInstallations } from '@firebase/installations-types' ;
33
33
import { PerformanceController } from '../controllers/perf' ;
34
34
35
+ // eslint-disable-next-line no-restricted-properties
35
36
describe ( 'Performance Monitoring > perf_logger' , ( ) => {
36
37
const IID = 'idasdfsffe' ;
37
38
const PAGE_URL = 'http://mock-page.com' ;
@@ -54,7 +55,6 @@ describe('Performance Monitoring > perf_logger', () => {
54
55
Array < { message : string ; eventTime : number } > ,
55
56
void
56
57
> ;
57
- const flushQueuedEventsStub = stub ( transportService , 'flushQueuedEvents' ) ;
58
58
let getIidStub : SinonStub < [ ] , string | undefined > ;
59
59
let clock : SinonFakeTimers ;
60
60
@@ -142,8 +142,6 @@ describe('Performance Monitoring > perf_logger', () => {
142
142
expect ( addToQueueStub . getCall ( 0 ) . args [ 0 ] . message ) . to . be . equal (
143
143
EXPECTED_TRACE_MESSAGE
144
144
) ;
145
- // Only page load traces should be immediately flushed
146
- expect ( flushQueuedEventsStub ) . not . to . be . called ;
147
145
} ) ;
148
146
149
147
it ( 'does not log an event if cookies are disabled in the browser' , ( ) => {
@@ -185,8 +183,6 @@ describe('Performance Monitoring > perf_logger', () => {
185
183
expect ( addToQueueStub . getCall ( 0 ) . args [ 0 ] . message ) . to . be . equal (
186
184
EXPECTED_TRACE_MESSAGE
187
185
) ;
188
- // Only page load traces should be immediately flushed
189
- expect ( flushQueuedEventsStub ) . not . to . be . called ;
190
186
} ) ;
191
187
192
188
it ( 'ascertains that the max number of custom attributes allowed is 5' , ( ) => {
@@ -212,8 +208,6 @@ describe('Performance Monitoring > perf_logger', () => {
212
208
expect ( addToQueueStub . getCall ( 0 ) . args [ 0 ] . message ) . to . be . equal (
213
209
EXPECTED_TRACE_MESSAGE
214
210
) ;
215
- // Only page load traces should be immediately flushed
216
- expect ( flushQueuedEventsStub ) . not . to . be . called ;
217
211
} ) ;
218
212
} ) ;
219
213
@@ -297,7 +291,6 @@ describe('Performance Monitoring > perf_logger', () => {
297
291
expect ( addToQueueStub . getCall ( 0 ) . args [ 0 ] . message ) . to . be . equal (
298
292
EXPECTED_TRACE_MESSAGE
299
293
) ;
300
- expect ( flushQueuedEventsStub ) . to . be . called ;
301
294
} ) ;
302
295
} ) ;
303
296
0 commit comments