@@ -1456,41 +1456,8 @@ describe('Class: Tracer', () => {
14561456 new Error ( 'dummy error' )
14571457 ) ;
14581458 } ) ;
1459- } ) ;
1460-
1461- describe ( 'Method: captureAWS' , ( ) => {
1462- it ( 'does nothing when called while tracing is disabled' , ( ) => {
1463- // Prepare
1464- const tracer : Tracer = new Tracer ( { enabled : false } ) ;
1465- const captureAWSSpy = vi
1466- . spyOn ( tracer . provider , 'captureAWS' )
1467- . mockImplementation ( ( ) => null ) ;
14681459
1469- // Act
1470- tracer . captureAWS ( { } ) ;
1471-
1472- // Assess
1473- expect ( captureAWSSpy ) . toBeCalledTimes ( 0 ) ;
1474- } ) ;
1475-
1476- it ( 'returns the decorated object that was passed to it' , ( ) => {
1477- // Prepare
1478- const tracer : Tracer = new Tracer ( ) ;
1479- const captureAWSSpy = vi
1480- . spyOn ( tracer . provider , 'captureAWS' )
1481- . mockImplementation ( ( ) => null ) ;
1482-
1483- // Act
1484- tracer . captureAWS ( { } ) ;
1485-
1486- // Assess
1487- expect ( captureAWSSpy ) . toBeCalledTimes ( 1 ) ;
1488- expect ( captureAWSSpy ) . toBeCalledWith ( { } ) ;
1489- } ) ;
1490- } ) ;
1491-
1492- describe ( 'Method: captureAWSv3Client' , ( ) => {
1493- it ( 'does nothing when tracing is disabled' , ( ) => {
1460+ it ( 'skips tracing AWS SDK clients when tracing is disabled' , ( ) => {
14941461 // Prepare
14951462 const tracer : Tracer = new Tracer ( { enabled : false } ) ;
14961463 const captureAWSv3ClientSpy = vi
@@ -1504,7 +1471,7 @@ describe('Class: Tracer', () => {
15041471 expect ( captureAWSv3ClientSpy ) . toBeCalledTimes ( 0 ) ;
15051472 } ) ;
15061473
1507- it ( 'returns the decorated object that was passed to it ' , ( ) => {
1474+ it ( 'returns the instrumented AWS SDK client when called ' , ( ) => {
15081475 // Prepare
15091476 const tracer : Tracer = new Tracer ( ) ;
15101477 const captureAWSv3ClientSpy = vi
0 commit comments