@@ -1456,41 +1456,8 @@ describe('Class: Tracer', () => {
1456
1456
new Error ( 'dummy error' )
1457
1457
) ;
1458
1458
} ) ;
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 ) ;
1468
1459
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' , ( ) => {
1494
1461
// Prepare
1495
1462
const tracer : Tracer = new Tracer ( { enabled : false } ) ;
1496
1463
const captureAWSv3ClientSpy = vi
@@ -1504,7 +1471,7 @@ describe('Class: Tracer', () => {
1504
1471
expect ( captureAWSv3ClientSpy ) . toBeCalledTimes ( 0 ) ;
1505
1472
} ) ;
1506
1473
1507
- it ( 'returns the decorated object that was passed to it ' , ( ) => {
1474
+ it ( 'returns the instrumented AWS SDK client when called ' , ( ) => {
1508
1475
// Prepare
1509
1476
const tracer : Tracer = new Tracer ( ) ;
1510
1477
const captureAWSv3ClientSpy = vi
0 commit comments