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

fix: formatting of URL, closes #1256 #1259

Merged
merged 1 commit into from
Dec 20, 2021
Merged

fix: formatting of URL, closes #1256 #1259

merged 1 commit into from
Dec 20, 2021

Conversation

thisislawatts
Copy link
Collaborator

PR Checklist

  • - Latest master branch merged
  • - PR title descriptive (can be used in release notes)

PR Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

default:
return link
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refactor: Move out to a pure function, simplifying the test setup.

@cypress
Copy link

cypress bot commented Nov 10, 2021



Test summary

70 0 0 0Flakiness 1


Run details

Project onearmy-community-platform
Status Passed
Commit 7b03e88
Started Nov 10, 2021 10:58 PM
Ended Nov 10, 2021 11:04 PM
Duration 05:43 💡
OS Linux Ubuntu - 20.04
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

src/integration/sign-up.spec.ts Flakiness
1 [Sign-up - new user] > sign in as new user

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

// TODO - we might want to add more formatting for cases where,
// e.g. only a username is given for a bazar link
public formatLink(link: string) {
link = link && link.toLowerCase()
Copy link
Collaborator Author

@thisislawatts thisislawatts Nov 10, 2021

Choose a reason for hiding this comment

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

😱 I have inadvertently hidden the functional change as I refactored to introduce tests, but the key change here was removing link.toLowerCase()

@thisislawatts thisislawatts merged commit 9cbde3d into master Dec 20, 2021
@thisislawatts thisislawatts deleted the fix/1256 branch December 20, 2021 10:31
@thisislawatts
Copy link
Collaborator Author

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants