Skip to content
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

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

ashika112
Copy link
Member

@ashika112 ashika112 commented Mar 21, 2024

Description of changes

  • Fixes Path assertion to validate path to not start with leading slash
  • Updates test

Description of how you validated changes

  • Unit tests and manual testing

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashika112 ashika112 requested a review from a team as a code owner March 21, 2024 21:59
ashwinkumar6
ashwinkumar6 previously approved these changes Mar 21, 2024
Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com>
@@ -218,11 +218,11 @@ describe('downloadData with path', () => {

test.each([
{
path: '/path',
path: 'path',
expectedKey: 'path',
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Contributor

@erinleigh90 erinleigh90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ashika112 ashika112 merged commit 29661a5 into aws-amplify:gen2-storage Mar 21, 2024
28 checks passed
@ashika112 ashika112 deleted the fix/leading-slash-path branch March 21, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants