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

Temporal: Adjust tests for removal of options parameter from Temporal.Duration.p.add/subtract #4081

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented May 15, 2024

This corresponds to a yet-to-be-presented potential normative change, to simplify the Temporal proposal.

This PR is split into two commits, for ease of review. The first one is just a blanket removal of everything that tested the options parameter, and doesn't need to be reviewed very attentively. The second commit contains the actual tests.

See tc39/proposal-temporal#2825

See tc39/proposal-temporal#2825. This is a mass removal of tests that use
this functionality, in a separate commit for ease of review. Further
adjustments will be made in the following commit.
See tc39/proposal-temporal#2825.

Various edits to existing tests so that they make more sense with the
removal of relativeTo.

New tests specifically testing that calendar units cannot be added or
subtracted directly.
@ptomato ptomato added the awaiting consensus This needs committee consensus before it can be eligible to be merged. label May 15, 2024
@ptomato ptomato requested review from a team as code owners May 15, 2024 19:14
Copy link
Contributor

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

I'm not certain that we're not losing coverage with the removed files, but I did spot check a handful and it looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting consensus This needs committee consensus before it can be eligible to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants