Skip to content

Commit b26cc70

Browse files
committed
no need to cast feedbackevent
1 parent 432c5a7 commit b26cc70

File tree

2 files changed

+4
-4
lines changed
  • dev-packages/browser-integration-tests/suites/public-api/captureFeedback

2 files changed

+4
-4
lines changed

dev-packages/browser-integration-tests/suites/public-api/captureFeedback/withCaptureException/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event, FeedbackEvent } from '@sentry/core';
2+
import type { Event } from '@sentry/core';
33
import { sentryTest } from '../../../../utils/fixtures';
44
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
55

@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureException is called', async ({ get
1111
expect(data).toHaveLength(2);
1212

1313
const errorEvent = 'exception' in data[0] ? data[0] : data[1];
14-
const feedback = ('exception' in data[0] ? data[1] : data[0]) as FeedbackEvent;
14+
const feedback = 'exception' in data[0] ? data[1] : data[0];
1515

1616
expect(feedback.contexts).toEqual(
1717
expect.objectContaining({

dev-packages/browser-integration-tests/suites/public-api/captureFeedback/withCaptureMessage/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event, FeedbackEvent } from '@sentry/core';
2+
import type { Event } from '@sentry/core';
33
import { sentryTest } from '../../../../utils/fixtures';
44
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
55

@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureMessage is called', async ({ getLo
1111
expect(data).toHaveLength(2);
1212

1313
const errorEvent = 'exception' in data[0] ? data[0] : data[1];
14-
const feedback = ('exception' in data[0] ? data[1] : data[0]) as FeedbackEvent;
14+
const feedback = 'exception' in data[0] ? data[1] : data[0];
1515

1616
expect(feedback.contexts).toEqual(
1717
expect.objectContaining({

0 commit comments

Comments
 (0)