Skip to content

Commit 5c66ac4

Browse files
committed
lint + update added tests
1 parent c99357a commit 5c66ac4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/replay/src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
186186
// So we call `this._initialize()` in next event loop as a workaround to wait for other
187187
// global event processors to finish. This is no longer needed, but keeping it
188188
// here to avoid any future issues.
189-
setTimeout(() => this._initialize());
189+
setTimeout(() => this._initialize());
190190
}
191191

192192
/**

packages/replay/src/session/createSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { logger } from '@sentry/utils';
22

3-
import type { Sampled,Session, SessionOptions } from '../types';
3+
import type { Sampled, Session, SessionOptions } from '../types';
44
import { isSampled } from '../util/isSampled';
55
import { saveSession } from './saveSession';
66
import { makeSession } from './Session';

packages/replay/test/integration/errorSampleRate.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ describe('Integration | errorSampleRate', () => {
182182
expect(replay).toHaveSentReplay({
183183
recordingPayloadHeader: { segment_id: 0 },
184184
replayEventPayload: expect.objectContaining({
185-
replay_type: 'error',
185+
replay_type: 'buffer',
186186
contexts: {
187187
replay: {
188188
error_sample_rate: 1,
@@ -223,7 +223,7 @@ describe('Integration | errorSampleRate', () => {
223223
expect(replay).toHaveLastSentReplay({
224224
recordingPayloadHeader: { segment_id: 0 },
225225
replayEventPayload: expect.objectContaining({
226-
replay_type: 'error',
226+
replay_type: 'buffer',
227227
contexts: {
228228
replay: {
229229
error_sample_rate: 1,

packages/replay/test/unit/session/sessionSampling.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSessionSampleType} from '../../../src/session/createSession';
1+
import { getSessionSampleType } from '../../../src/session/createSession';
22
import { makeSession } from '../../../src/session/Session';
33

44
describe('Unit | session | sessionSampling', () => {
@@ -33,4 +33,4 @@ describe('Unit | session | sessionSampling', () => {
3333

3434
expect(newSession.sampled).toBe('session');
3535
});
36-
})
36+
});

0 commit comments

Comments
 (0)