Skip to content

Commit

Permalink
Add tests for existing package import/require with services (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 10, 2022
1 parent f67d3ea commit af1ba19
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-queens-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"aws-sdk-js-codemod": patch
---

Add tests for existing package import/require with services
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import DynamoDB from "aws-sdk/clients/dynamodb";
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";

const client1 = new DynamoDB();
const client2 = new DynamoDBClient();
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { DynamoDBClient, DynamoDB } from "@aws-sdk/client-dynamodb";

const client1 = new DynamoDB();
const client2 = new DynamoDBClient();
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const DynamoDB = require("aws-sdk/clients/dynamodb");
const { DynamoDBClient } = require("@aws-sdk/client-dynamodb");

const client1 = new DynamoDB();
const client2 = new DynamoDBClient();
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const {
DynamoDBClient,
DynamoDB
} = require("@aws-sdk/client-dynamodb");

const client1 = new DynamoDB();
const client2 = new DynamoDBClient();

0 comments on commit af1ba19

Please sign in to comment.