Skip to content

Commit 2ba056e

Browse files
committed
Remove flush from tests due to globals conflict.
1 parent 6f876e9 commit 2ba056e

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

packages/performance/src/services/oob_resources_service.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
LCPMetricWithAttribution
4444
} from 'web-vitals/attribution';
4545

46+
// eslint-disable-next-line no-restricted-properties
4647
describe('Firebase Performance > oob_resources_service', () => {
4748
const MOCK_ID = 'idasdfsffe';
4849

packages/performance/src/services/perf_logger.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { mergeStrings } from '../utils/string_merger';
3232
import { FirebaseInstallations } from '@firebase/installations-types';
3333
import { PerformanceController } from '../controllers/perf';
3434

35+
// eslint-disable-next-line no-restricted-properties
3536
describe('Performance Monitoring > perf_logger', () => {
3637
const IID = 'idasdfsffe';
3738
const PAGE_URL = 'http://mock-page.com';
@@ -54,7 +55,6 @@ describe('Performance Monitoring > perf_logger', () => {
5455
Array<{ message: string; eventTime: number }>,
5556
void
5657
>;
57-
const flushQueuedEventsStub = stub(transportService, 'flushQueuedEvents');
5858
let getIidStub: SinonStub<[], string | undefined>;
5959
let clock: SinonFakeTimers;
6060

@@ -142,8 +142,6 @@ describe('Performance Monitoring > perf_logger', () => {
142142
expect(addToQueueStub.getCall(0).args[0].message).to.be.equal(
143143
EXPECTED_TRACE_MESSAGE
144144
);
145-
// Only page load traces should be immediately flushed
146-
expect(flushQueuedEventsStub).not.to.be.called;
147145
});
148146

149147
it('does not log an event if cookies are disabled in the browser', () => {
@@ -185,8 +183,6 @@ describe('Performance Monitoring > perf_logger', () => {
185183
expect(addToQueueStub.getCall(0).args[0].message).to.be.equal(
186184
EXPECTED_TRACE_MESSAGE
187185
);
188-
// Only page load traces should be immediately flushed
189-
expect(flushQueuedEventsStub).not.to.be.called;
190186
});
191187

192188
it('ascertains that the max number of custom attributes allowed is 5', () => {
@@ -212,8 +208,6 @@ describe('Performance Monitoring > perf_logger', () => {
212208
expect(addToQueueStub.getCall(0).args[0].message).to.be.equal(
213209
EXPECTED_TRACE_MESSAGE
214210
);
215-
// Only page load traces should be immediately flushed
216-
expect(flushQueuedEventsStub).not.to.be.called;
217211
});
218212
});
219213

@@ -297,7 +291,6 @@ describe('Performance Monitoring > perf_logger', () => {
297291
expect(addToQueueStub.getCall(0).args[0].message).to.be.equal(
298292
EXPECTED_TRACE_MESSAGE
299293
);
300-
expect(flushQueuedEventsStub).to.be.called;
301294
});
302295
});
303296

packages/performance/src/services/transport_service.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import { SettingsService } from './settings_service';
2727

2828
use(sinonChai);
2929

30-
// eslint-disable-next-line no-restricted-properties
31-
describe.only('Firebase Performance > transport_service', () => {
30+
describe('Firebase Performance > transport_service', () => {
3231
const sendBeaconSpy = spy(navigator, 'sendBeacon');
3332
const INITIAL_SEND_TIME_DELAY_MS = 5.5 * 1000;
3433
const DEFAULT_SEND_INTERVAL_MS = 10 * 1000;

0 commit comments

Comments
 (0)