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(mock-doc): return empty string if anchor has no href attribute #6051

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

christian-bromann
Copy link
Member

What is the current behavior?

If an anchor element in mock-doc has to href property, getting the pathname will fail.

What is the new behavior?

Instead it should return an empty string.

fixes #6047

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

n/a

Other information

n/a

@christian-bromann christian-bromann merged commit e44642f into main Nov 21, 2024
88 checks passed
@christian-bromann christian-bromann deleted the cb/pathname-fix branch November 21, 2024 18:45
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.

bug: Error on test when using axios with stencil (MockAnchorElement)
2 participants