UNPKG

@adikari/config-manager

Version:

Tool to deploy configs to different stores

13 lines (10 loc) 357 B
jest.unmock('aws-sdk'); const { makeDdbClient } = require('./make-ddb-client'); describe('makeDdbClient', () => { it('should create a dynamodb client with the provided tableName', () => { const ddbClient = makeDdbClient({ tableName: 'thetesttable' }); expect(ddbClient.options.params).toEqual({ TableName: 'thetesttable' }); }); });