Skip to content

Commit b1825e9

Browse files
committed
fix test
1 parent 2227d19 commit b1825e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/replay/test/unit/coreHandlers/handleXhr.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HandlerDataXhr, SentryWrappedXMLHttpRequest } from '@sentry/types';
1+
import type { HandlerDataXhr, SentryWrappedXMLHttpRequest, SentryXhrData } from '@sentry/types';
22

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

@@ -9,6 +9,7 @@ const DEFAULT_DATA: HandlerDataXhr = {
99
method: 'GET',
1010
url: '/api/0/organizations/sentry/',
1111
status_code: 200,
12+
request_headers: {},
1213
},
1314
} as SentryWrappedXMLHttpRequest,
1415
startTimestamp: 10000,
@@ -45,7 +46,7 @@ describe('Unit | coreHandlers | handleXhr', () => {
4546
xhr: {
4647
...DEFAULT_DATA.xhr,
4748
__sentry_xhr__: {
48-
...DEFAULT_DATA.xhr.__sentry_xhr__,
49+
...(DEFAULT_DATA.xhr.__sentry_xhr__ as SentryXhrData),
4950
request_body_size: 123,
5051
response_body_size: 456,
5152
},

0 commit comments

Comments
 (0)