@@ -91,7 +91,6 @@ describe('SentryBrowser', () => {
91
91
getCurrentScope ( ) . setUser ( EX_USER ) ;
92
92
setCurrentClient ( client ) ;
93
93
94
- // eslint-disable-next-line deprecation/deprecation
95
94
showReportDialog ( { eventId : 'foobar' } ) ;
96
95
97
96
expect ( getReportDialogEndpoint ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -106,7 +105,6 @@ describe('SentryBrowser', () => {
106
105
setCurrentClient ( client ) ;
107
106
108
107
const DIALOG_OPTION_USER = { email :
'[email protected] ' } ;
109
- // eslint-disable-next-line deprecation/deprecation
110
108
showReportDialog ( { eventId : 'foobar' , user : DIALOG_OPTION_USER } ) ;
111
109
112
110
expect ( getReportDialogEndpoint ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -140,7 +138,7 @@ describe('SentryBrowser', () => {
140
138
141
139
it ( 'should call `onClose` when receiving `__sentry_reportdialog_closed__` MessageEvent' , async ( ) => {
142
140
const onClose = jest . fn ( ) ;
143
- // eslint-disable-next-line deprecation/deprecation
141
+
144
142
showReportDialog ( { eventId : 'foobar' , onClose } ) ;
145
143
146
144
await waitForPostMessage ( '__sentry_reportdialog_closed__' ) ;
@@ -155,7 +153,7 @@ describe('SentryBrowser', () => {
155
153
const onClose = jest . fn ( ( ) => {
156
154
throw new Error ( ) ;
157
155
} ) ;
158
- // eslint-disable-next-line deprecation/deprecation
156
+
159
157
showReportDialog ( { eventId : 'foobar' , onClose } ) ;
160
158
161
159
await waitForPostMessage ( '__sentry_reportdialog_closed__' ) ;
@@ -168,7 +166,7 @@ describe('SentryBrowser', () => {
168
166
169
167
it ( 'should not call `onClose` for other MessageEvents' , async ( ) => {
170
168
const onClose = jest . fn ( ) ;
171
- // eslint-disable-next-line deprecation/deprecation
169
+
172
170
showReportDialog ( { eventId : 'foobar' , onClose } ) ;
173
171
174
172
await waitForPostMessage ( 'some_message' ) ;
0 commit comments