@@ -75,14 +75,16 @@ describe('SentryNode', () => {
75
75
} ) ;
76
76
77
77
describe ( 'breadcrumbs' , ( ) => {
78
- let s : jest . SpyInstance < void , [ Event , EventHint ?] > ;
78
+ let sendEventSpy : jest . SpyInstance < void , [ Event , EventHint ?] > ;
79
79
80
80
beforeEach ( ( ) => {
81
- s = jest . spyOn ( NodeClient . prototype , 'sendEvent' ) . mockImplementation ( async ( ) => Promise . resolve ( { code : 200 } ) ) ;
81
+ sendEventSpy = jest
82
+ . spyOn ( NodeClient . prototype , 'sendEvent' )
83
+ . mockImplementation ( async ( ) => Promise . resolve ( { code : 200 } ) ) ;
82
84
} ) ;
83
85
84
86
afterEach ( ( ) => {
85
- s . mockRestore ( ) ;
87
+ sendEventSpy . mockRestore ( ) ;
86
88
} ) ;
87
89
88
90
test ( 'record auto breadcrumbs' , done => {
@@ -106,14 +108,16 @@ describe('SentryNode', () => {
106
108
} ) ;
107
109
108
110
describe ( 'capture' , ( ) => {
109
- let s : jest . SpyInstance < void , [ Event , EventHint ?] > ;
111
+ let sendEventSpy : jest . SpyInstance < void , [ Event , EventHint ?] > ;
110
112
111
113
beforeEach ( ( ) => {
112
- s = jest . spyOn ( NodeClient . prototype , 'sendEvent' ) . mockImplementation ( async ( ) => Promise . resolve ( { code : 200 } ) ) ;
114
+ sendEventSpy = jest
115
+ . spyOn ( NodeClient . prototype , 'sendEvent' )
116
+ . mockImplementation ( async ( ) => Promise . resolve ( { code : 200 } ) ) ;
113
117
} ) ;
114
118
115
119
afterEach ( ( ) => {
116
- s . mockRestore ( ) ;
120
+ sendEventSpy . mockRestore ( ) ;
117
121
} ) ;
118
122
119
123
test ( 'capture an exception' , done => {
0 commit comments