We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think createEvent function is having side-effect
createEvent
const createEvent = require('aws-event-mocks'); const event1 = createEvent({ template: 'aws:s3', merge: { Records: [{ eventName: 'ObjectCreated:Put', s3: { bucket: { name: 'bucket1' }, object: { key: 'key1' } } }] } }); const event2 = createEvent({ template: 'aws:s3', merge: { Records: [{ eventName: 'ObjectCreated:Put', s3: { bucket: { name: 'bucket1' }, object: { key: 'key2' } } }] } }); console.log(event1.Records[0].s3.object.key); // return 'key2'
I would expect to return 'key1'
'key1'
The text was updated successfully, but these errors were encountered:
addinging unit test for serverless#4
f86ab4a
candidate for serverless#4 fixing
20538ff
Merge pull request #5 from piercus/master
e007709
#4 avoid side effects
Successfully merging a pull request may close this issue.
I think
createEvent
function is having side-effectScenario
Expected
I would expect to return
'key1'
The text was updated successfully, but these errors were encountered: