-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update Path assertion #13160
Update Path assertion #13160
Conversation
packages/storage/__tests__/providers/s3/apis/utils/validateStorageOperationInput.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com>
@@ -218,11 +218,11 @@ describe('downloadData with path', () => { | |||
|
|||
test.each([ | |||
{ | |||
path: '/path', | |||
path: 'path', | |||
expectedKey: 'path', |
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.
why have expectedPath, can just have the path in this object
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.
just for readability and consistency.
packages/storage/__tests__/providers/s3/apis/utils/validateStorageOperationInput.test.ts
Show resolved
Hide resolved
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.
LGTM
Description of changes
path
to not start with leading slashDescription of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.