@@ -41,22 +41,22 @@ const parsingError: ParsingErrorObject = {
41
41
errorName : 'Parsing Error' ,
42
42
errorDetails : {
43
43
error : Error ( 'bad parsing' ) ,
44
- caller : 'TestQueryOpts' ,
44
+ callingFn : 'TestQueryOpts' ,
45
45
} ,
46
46
}
47
47
48
48
const notFoundError : NotFoundErrorObject = {
49
49
errorName : 'Not Found Error' ,
50
50
errorDetails : {
51
- caller : 'TestQueryOpts' ,
51
+ callingFn : 'TestQueryOpts' ,
52
52
} ,
53
53
}
54
54
55
55
const ownerNotActivatedError : OwnerNotActivatedErrorObject = {
56
56
errorName : 'Owner Not Activated' ,
57
57
data : { detail : 'test' } ,
58
58
errorDetails : {
59
- caller : 'TestQueryOpts' ,
59
+ callingFn : 'TestQueryOpts' ,
60
60
} ,
61
61
}
62
62
@@ -76,7 +76,7 @@ describe('rejectNetworkError', () => {
76
76
expect ( mocks . addBreadcrumb ) . toHaveBeenCalledWith ( {
77
77
category : 'network.error' ,
78
78
level,
79
- message : `${ errorObject . errorDetails . caller } - ${ errorObject . errorName } ` ,
79
+ message : `${ errorObject . errorDetails . callingFn } - ${ errorObject . errorName } ` ,
80
80
data :
81
81
'error' in errorObject . errorDetails
82
82
? errorObject . errorDetails . error
@@ -88,7 +88,7 @@ describe('rejectNetworkError', () => {
88
88
_rejectNetworkError ( errorObject ) . catch ( ( _e ) => { } )
89
89
90
90
expect ( mocks . setTags ) . toHaveBeenCalledWith ( {
91
- caller : errorObject . errorDetails . caller ,
91
+ callingFn : errorObject . errorDetails . callingFn ,
92
92
errorName : errorObject . errorName ,
93
93
} )
94
94
} )
@@ -102,7 +102,7 @@ describe('rejectNetworkError', () => {
102
102
it ( 'sets the fingerprint' , ( ) => {
103
103
_rejectNetworkError ( errorObject ) . catch ( ( _e ) => {
104
104
expect ( mocks . setFingerprint ) . toHaveBeenCalledWith ( [
105
- `${ errorObject . errorDetails . caller } - ${ errorObject . errorName } ` ,
105
+ `${ errorObject . errorDetails . callingFn } - ${ errorObject . errorName } ` ,
106
106
] )
107
107
} )
108
108
} )
@@ -111,15 +111,15 @@ describe('rejectNetworkError', () => {
111
111
_rejectNetworkError ( errorObject ) . catch ( ( _e ) => { } )
112
112
113
113
expect ( mocks . captureMessage ) . toHaveBeenCalledWith (
114
- `${ errorObject . errorDetails . caller } - ${ errorObject . errorName } `
114
+ `${ errorObject . errorDetails . callingFn } - ${ errorObject . errorName } `
115
115
)
116
116
} )
117
117
118
118
it ( 'returns a rejected promise' , ( ) => {
119
119
const result = _rejectNetworkError ( errorObject )
120
120
121
121
expect ( result ) . rejects . toStrictEqual ( {
122
- dev : `${ errorObject . errorDetails . caller } - ${ errorObject . errorName } ` ,
122
+ dev : `${ errorObject . errorDetails . callingFn } - ${ errorObject . errorName } ` ,
123
123
data : 'data' in errorObject ? errorObject . data : undefined ,
124
124
status,
125
125
} )
0 commit comments