Skip to content

Conversation

@joshblack
Copy link
Contributor

Noticed this was failing in newer PRs so updated it to pass. Not sure what the correct value is here but 10y seemed to make sense because the test was subtracting 10 years.

Copilot AI review requested due to automatic review settings April 25, 2025 15:45
@joshblack joshblack requested a review from a team as a code owner April 25, 2025 15:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates a failing test for the relative-time component by changing the expected value from "11y" to "10y" to better reflect the logic subtracting 10 years.

  • The expected value in the test assertion has been modified.
  • The update aligns the test with the implemented logic in subtracting 10 years.

time.setAttribute('format', 'micro')
await Promise.resolve()
assert.equal(time.shadowRoot.textContent, '11y')
assert.equal(time.shadowRoot.textContent, '10y')
Copy link

Copilot AI Apr 25, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding an inline comment to explain why '10y' is set as the expected output, clarifying the logic behind the 10-year subtraction for future reviewers.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

😅

@francinelucca francinelucca merged commit a3bea70 into main Apr 29, 2025
4 checks passed
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.

3 participants