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' ;
2
2
3
3
import { handleXhr } from '../../../src/coreHandlers/handleXhr' ;
4
4
@@ -9,6 +9,7 @@ const DEFAULT_DATA: HandlerDataXhr = {
9
9
method : 'GET' ,
10
10
url : '/api/0/organizations/sentry/' ,
11
11
status_code : 200 ,
12
+ request_headers : { } ,
12
13
} ,
13
14
} as SentryWrappedXMLHttpRequest ,
14
15
startTimestamp : 10000 ,
@@ -45,7 +46,7 @@ describe('Unit | coreHandlers | handleXhr', () => {
45
46
xhr : {
46
47
...DEFAULT_DATA . xhr ,
47
48
__sentry_xhr__ : {
48
- ...DEFAULT_DATA . xhr . __sentry_xhr__ ,
49
+ ...( DEFAULT_DATA . xhr . __sentry_xhr__ as SentryXhrData ) ,
49
50
request_body_size : 123 ,
50
51
response_body_size : 456 ,
51
52
} ,
You can’t perform that action at this time.
0 commit comments