File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/replay/test/unit/coreHandlers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import type { HandlerDataXhr , SentryWrappedXMLHttpRequest } from '@sentry/types' ;
1+ import type { HandlerDataXhr , SentryWrappedXMLHttpRequest , SentryXhrData } from '@sentry/types' ;
22
33import { 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 } ,
You can’t perform that action at this time.
0 commit comments