Skip to content

Commit 1280d80

Browse files
committed
Fix tests
1 parent 1f5a9ed commit 1280d80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
362362

363363
if (WINDOW.location) {
364364
if (instrumentPageLoad) {
365-
let origin = browserPerformanceTimeOrigin();
365+
const origin = browserPerformanceTimeOrigin();
366366
startBrowserTracingPageLoadSpan(client, {
367367
name: WINDOW.location.pathname,
368368
// pageload should always start at timeOrigin (and needs to be in s, not ms)

packages/replay-internal/test/unit/util/createPerformanceEntry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ vi.setSystemTime(new Date('2023-01-01'));
77

88
vi.mock('@sentry/utils', async () => ({
99
...(await vi.importActual('@sentry/utils')),
10-
browserPerformanceTimeOrigin: new Date('2023-01-01').getTime(),
10+
browserPerformanceTimeOrigin: () => new Date('2023-01-01').getTime(),
1111
}));
1212

1313
import { WINDOW } from '../../../src/constants';

0 commit comments

Comments
 (0)