diff --git a/src/utils.js b/src/utils.js index de39894..2023fc0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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({ diff --git a/test/integration.test.js b/test/integration.test.js index 0b5eb68..2756d59 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -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); @@ -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();