Skip to content

Commit

Permalink
Fix Lint Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
J3tto committed Dec 14, 2020
1 parent bf93bc4 commit 9515911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function deleteTable({ dynamodb, name }) {

async function updateTimeToLive({ dynamodb, name, timeToLiveSpecification = {} }) {
return await dynamodb
.waitFor('tableExists', { TableName: name }, async function (err, data) {
.waitFor('tableExists', { TableName: name }, async (err) => {
if (err) throw err;
return await dynamodb
.updateTimeToLive({
Expand Down
11 changes: 2 additions & 9 deletions test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
'use strict';

const {
sleep,
generateId,
getCredentials,
getServerlessSdk,
getTable,
getTableTimeToLive,
} = require('./utils');
const { sleep, generateId, getCredentials, getServerlessSdk, getTable } = require('./utils');

// set enough timeout for deployment to finish
jest.setTimeout(30000);
Expand Down Expand Up @@ -86,7 +79,7 @@ it('should successfully deploy dynamodb table and local index', async () => {

const res = await getTable(credentials, name);

//const resTTL = await getTableTimeToLive(credentials, name);
// const resTTL = await getTableTimeToLive(credentials, name);

expect(instance.outputs.name).toBeDefined();
expect(instance.outputs.arn).toBeDefined();
Expand Down

0 comments on commit 9515911

Please sign in to comment.