-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
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
Add module loading tests for user function #124
Conversation
@@ -1,12 +1,12 @@ | |||
{ | |||
"name": "aws-lambda-ric", | |||
"version": "3.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a leftover from a previous bump? Maybe we should clearly state in the readme that package-lock should be commited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Sure let me add it to the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated README and the PR template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳 great job
@@ -250,6 +251,166 @@ describe('UserFunction.load method', () => { | |||
|
|||
response.should.be.resolvedWith('moon'); | |||
}); | |||
|
|||
it('should successfully load a CJS handler from extensionless file (no package.json)', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Description of changes:
Add missing test scenarios:
Checklist
npm install
to generate thepackage-lock.json
correctly and included it in the PR.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.