UNPKG

simple-lambda-client

Version:

A simple, convenient way to invoke aws lambda functions with best practices.

15 lines 781 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getSimpleLambdaClientCacheKey_1 = require("./getSimpleLambdaClientCacheKey"); describe('getSimpleLambdaClientCacheKey', () => { it('should produce an observable and unique cache key', async () => { const key = (0, getSimpleLambdaClientCacheKey_1.getSimpleLambdaClientCacheKey)({ service: 'svc-cargo-ships', function: 'getContainersOnShip', stage: 'dev', event: { shipUuid: '__ship_uuid__' }, }); expect(key).toEqual('svc-cargo-ships-dev-getContainersOnShip.shipUuid.__ship_uuid__.487dee1bce26ff47f8e05f5a3728889217c666de22a939e8786be0501b71c66f'); }); }); //# sourceMappingURL=getSimpleLambdaClientCacheKey.test.js.map