Skip to content

Commit

Permalink
test(replay): Fix test (#8310)
Browse files Browse the repository at this point in the history
Not sure how this happened and how that didn't fail before, but this is
failing on master as of now...
  • Loading branch information
mydea authored Jun 9, 2023
1 parent b877c10 commit 8934ccc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import * as SentryCore from '@sentry/core';
import type { Transport } from '@sentry/types';
import * as SentryUtils from '@sentry/utils';

import type { Replay } from '../../src';
import type { EventType, Replay } from '../../src';
import type { ReplayContainer } from '../../src/replay';
import { clearSession } from '../../src/session/clearSession';
import { EventType } from '../../src/types';
import * as SendReplayRequest from '../../src/util/sendReplayRequest';
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from '../index';
import { useFakeTimers } from '../utils/use-fake-timers';
Expand Down Expand Up @@ -55,7 +54,7 @@ describe('Integration | beforeAddRecordingEvent', () => {

// This should not do anything because callback should not be called
// for `event.type != 5` - but we guard anyhow to be safe
if ((event.type as EventType) === EventType.FullSnapshot) {
if ((event.type as EventType) === 2) {
return null;
}

Expand Down

0 comments on commit 8934ccc

Please sign in to comment.