Skip to content

Commit 7cbde5a

Browse files
authored
Remove 'AWS_' prefix from input tests (#292)
1 parent a206ba3 commit 7cbde5a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/transforms/v2-to-v3/__fixtures__/api-promise/service-import.input.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import AWS_DynamoDB from "aws-sdk/clients/dynamodb";
1+
import DynamoDBClient from "aws-sdk/clients/dynamodb";
22

3-
const client = new AWS_DynamoDB();
3+
const client = new DynamoDBClient();
44

55
// Promise without params
66
{
@@ -21,7 +21,7 @@ const client = new AWS_DynamoDB();
2121

2222
// Client as class member
2323
class ClientClassMember {
24-
constructor(clientInCtr = new AWS_DynamoDB()) {
24+
constructor(clientInCtr = new DynamoDBClient()) {
2525
this.clientInClass = clientInCtr;
2626
}
2727

src/transforms/v2-to-v3/__fixtures__/api-promise/service-import.output.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DynamoDB as AWS_DynamoDB } from "@aws-sdk/client-dynamodb";
1+
import { DynamoDB as DynamoDBClient } from "@aws-sdk/client-dynamodb";
22

3-
const client = new AWS_DynamoDB();
3+
const client = new DynamoDBClient();
44

55
// Promise without params
66
{
@@ -20,7 +20,7 @@ const client = new AWS_DynamoDB();
2020

2121
// Client as class member
2222
class ClientClassMember {
23-
constructor(clientInCtr = new AWS_DynamoDB()) {
23+
constructor(clientInCtr = new DynamoDBClient()) {
2424
this.clientInClass = clientInCtr;
2525
}
2626

src/transforms/v2-to-v3/__fixtures__/api-promise/service-require.input.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const AWS_DynamoDB = require("aws-sdk/clients/dynamodb");
1+
const DynamoDBClient = require("aws-sdk/clients/dynamodb");
22

3-
const client = new AWS_DynamoDB();
3+
const client = new DynamoDBClient();
44

55
// Promise without params
66
{
@@ -21,7 +21,7 @@ const client = new AWS_DynamoDB();
2121

2222
// Client as class member
2323
class ClientClassMember {
24-
constructor(clientInCtr = new AWS_DynamoDB()) {
24+
constructor(clientInCtr = new DynamoDBClient()) {
2525
this.clientInClass = clientInCtr;
2626
}
2727

src/transforms/v2-to-v3/__fixtures__/api-promise/service-require.output.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const {
2-
DynamoDB: AWS_DynamoDB
2+
DynamoDB: DynamoDBClient
33
} = require("@aws-sdk/client-dynamodb");
44

5-
const client = new AWS_DynamoDB();
5+
const client = new DynamoDBClient();
66

77
// Promise without params
88
{
@@ -22,7 +22,7 @@ const client = new AWS_DynamoDB();
2222

2323
// Client as class member
2424
class ClientClassMember {
25-
constructor(clientInCtr = new AWS_DynamoDB()) {
25+
constructor(clientInCtr = new DynamoDBClient()) {
2626
this.clientInClass = clientInCtr;
2727
}
2828

0 commit comments

Comments
 (0)