Skip to content

Instantly share code, notes, and snippets.

@mxro
Created June 17, 2022 23:39
Show Gist options
  • Select an option

  • Save mxro/e7717f575c2d712d51c6077da74514a0 to your computer and use it in GitHub Desktop.

Select an option

Save mxro/e7717f575c2d712d51c6077da74514a0 to your computer and use it in GitHub Desktop.
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