Skip to content

Commit 1319822

Browse files
committed
lint + fix test
1 parent dfb0195 commit 1319822

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

packages/browser-integration-tests/suites/replay/bufferMode/test.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -374,29 +374,29 @@ sentryTest(
374374
const event0 = getReplayEvent(req0);
375375
const content0 = getReplayRecordingContent(req0);
376376

377-
expect(event0).toEqual(
378-
getExpectedReplayEvent({
379-
error_ids: errorEventIds,
380-
replay_type: 'buffer',
381-
}),
382-
);
383-
384-
// The first event should have both, full and incremental snapshots,
385-
// as we recorded and kept all events in the buffer
386-
expect(content0.fullSnapshots).toHaveLength(1);
387-
// We want to make sure that the event that triggered the error was
388-
// recorded, as well as the first error that did not get sampled.
389-
expect(content0.breadcrumbs).toEqual(
390-
expect.arrayContaining([
391-
{
392-
...expectedClickBreadcrumb,
393-
message: 'body > button#error',
394-
data: {
395-
nodeId: expect.any(Number),
396-
node: {
397-
attributes: {
398-
id: 'error',
399-
},
377+
expect(event0).toEqual(
378+
getExpectedReplayEvent({
379+
error_ids: errorEventIds,
380+
replay_type: 'buffer',
381+
}),
382+
);
383+
384+
// The first event should have both, full and incremental snapshots,
385+
// as we recorded and kept all events in the buffer
386+
expect(content0.fullSnapshots).toHaveLength(1);
387+
// We want to make sure that the event that triggered the error was
388+
// recorded, as well as the first error that did not get sampled.
389+
expect(content0.breadcrumbs).toEqual(
390+
expect.arrayContaining([
391+
{
392+
...expectedClickBreadcrumb,
393+
message: 'body > button#error',
394+
data: {
395+
nodeId: expect.any(Number),
396+
node: {
397+
attributes: {
398+
id: 'error',
399+
},
400400
id: expect.any(Number),
401401
tagName: 'button',
402402
textContent: '***** *****',

packages/replay/test/integration/coreHandlers/handleAfterSendEvent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('Integration | coreHandlers | handleAfterSendEvent', () => {
136136

137137
const mockSend = getCurrentHub().getClient()!.getTransport()!.send as unknown as jest.SpyInstance<any>;
138138

139-
const error1 = Error({ event_id: 'err1', replayId: 'replayid1' });
139+
const error1 = Error({ event_id: 'err1', tags: { replayId: 'replayid1' } });
140140

141141
const handler = handleAfterSendEvent(replay);
142142

0 commit comments

Comments
 (0)