Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Apr 4, 2023
1 parent 2227d19 commit b1825e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/replay/test/unit/coreHandlers/handleXhr.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { HandlerDataXhr, SentryWrappedXMLHttpRequest } from '@sentry/types';
import type { HandlerDataXhr, SentryWrappedXMLHttpRequest, SentryXhrData } from '@sentry/types';

import { handleXhr } from '../../../src/coreHandlers/handleXhr';

Expand All @@ -9,6 +9,7 @@ const DEFAULT_DATA: HandlerDataXhr = {
method: 'GET',
url: '/api/0/organizations/sentry/',
status_code: 200,
request_headers: {},
},
} as SentryWrappedXMLHttpRequest,
startTimestamp: 10000,
Expand Down Expand Up @@ -45,7 +46,7 @@ describe('Unit | coreHandlers | handleXhr', () => {
xhr: {
...DEFAULT_DATA.xhr,
__sentry_xhr__: {
...DEFAULT_DATA.xhr.__sentry_xhr__,
...(DEFAULT_DATA.xhr.__sentry_xhr__ as SentryXhrData),
request_body_size: 123,
response_body_size: 456,
},
Expand Down

0 comments on commit b1825e9

Please sign in to comment.