@@ -39,9 +39,7 @@ const fakeCallback: Callback = (err, result) => {
3939 return err ;
4040} ;
4141
42- function expectScopeSettings ( fakeTransactionContext : any ) {
43- // @ts -expect-error see "Why @ts-expect-error" note
44- const fakeSpan = { ...SentryNode . fakeSpan , ...fakeTransactionContext } ;
42+ function expectScopeSettings ( ) {
4543 // @ts -expect-error see "Why @ts-expect-error" note
4644 expect ( SentryNode . fakeScope . setTransactionName ) . toBeCalledWith ( 'functionName' ) ;
4745 // @ts -expect-error see "Why @ts-expect-error" note
@@ -213,7 +211,7 @@ describe('AWSLambda', () => {
213211
214212 expect ( rv ) . toStrictEqual ( 42 ) ;
215213 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
216- expectScopeSettings ( fakeTransactionContext ) ;
214+ expectScopeSettings ( ) ;
217215 // @ts -expect-error see "Why @ts-expect-error" note
218216 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
219217 expect ( SentryNode . flush ) . toBeCalledWith ( 2000 ) ;
@@ -239,7 +237,7 @@ describe('AWSLambda', () => {
239237 } ;
240238
241239 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
242- expectScopeSettings ( fakeTransactionContext ) ;
240+ expectScopeSettings ( ) ;
243241 expect ( SentryNode . captureException ) . toBeCalledWith ( error , expect . any ( Function ) ) ;
244242 // @ts -expect-error see "Why @ts-expect-error" note
245243 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
@@ -317,7 +315,7 @@ describe('AWSLambda', () => {
317315 } ;
318316
319317 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
320- expectScopeSettings ( fakeTransactionContext ) ;
318+ expectScopeSettings ( ) ;
321319 expect ( SentryNode . captureException ) . toBeCalledWith ( e , expect . any ( Function ) ) ;
322320 // @ts -expect-error see "Why @ts-expect-error" note
323321 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
@@ -345,7 +343,7 @@ describe('AWSLambda', () => {
345343
346344 expect ( rv ) . toStrictEqual ( 42 ) ;
347345 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
348- expectScopeSettings ( fakeTransactionContext ) ;
346+ expectScopeSettings ( ) ;
349347 // @ts -expect-error see "Why @ts-expect-error" note
350348 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
351349 expect ( SentryNode . flush ) . toBeCalled ( ) ;
@@ -382,7 +380,7 @@ describe('AWSLambda', () => {
382380 } ;
383381
384382 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
385- expectScopeSettings ( fakeTransactionContext ) ;
383+ expectScopeSettings ( ) ;
386384 expect ( SentryNode . captureException ) . toBeCalledWith ( error , expect . any ( Function ) ) ;
387385 // @ts -expect-error see "Why @ts-expect-error" note
388386 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
@@ -425,7 +423,7 @@ describe('AWSLambda', () => {
425423
426424 expect ( rv ) . toStrictEqual ( 42 ) ;
427425 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
428- expectScopeSettings ( fakeTransactionContext ) ;
426+ expectScopeSettings ( ) ;
429427 // @ts -expect-error see "Why @ts-expect-error" note
430428 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
431429 expect ( SentryNode . flush ) . toBeCalled ( ) ;
@@ -462,7 +460,7 @@ describe('AWSLambda', () => {
462460 } ;
463461
464462 expect ( SentryNode . startSpanManual ) . toBeCalledWith ( fakeTransactionContext , expect . any ( Function ) ) ;
465- expectScopeSettings ( fakeTransactionContext ) ;
463+ expectScopeSettings ( ) ;
466464 expect ( SentryNode . captureException ) . toBeCalledWith ( error , expect . any ( Function ) ) ;
467465 // @ts -expect-error see "Why @ts-expect-error" note
468466 expect ( SentryNode . fakeSpan . end ) . toBeCalled ( ) ;
0 commit comments