Created
June 17, 2022 23:39
-
-
Save mxro/e7717f575c2d712d51c6077da74514a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('Should connect to local table', async () => { | |
| const tableName = await getTableName(); | |
| assert(tableName); | |
| const dynamoDB = await connect(); | |
| assert(dynamoDB); | |
| const tableInfo = await dynamoDB | |
| .describeTable({ TableName: tableName }) | |
| .promise(); | |
| assert(tableInfo.Table?.TableStatus === 'ACTIVE'); | |
| const dynamoDB2 = await connect(); | |
| assert(dynamoDB2); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment