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

Merged
merged 2 commits into from
Jun 13, 2024

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

@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.

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 force-pushed the temporal-2825-addition-relativeto branch from 2c404a7 to c5d366c Compare June 13, 2024 11:51
@ptomato ptomato removed the awaiting consensus This needs committee consensus before it can be eligible to be merged. label Jun 13, 2024
@ptomato
Copy link
Contributor Author

ptomato commented Jun 13, 2024

This normative change achieved consensus at the TC39 plenary of 2024-06-12.

@ptomato ptomato merged commit 61e3f5e into tc39:main Jun 13, 2024
8 checks passed
@ptomato ptomato deleted the temporal-2825-addition-relativeto branch June 13, 2024 11:54
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.

None yet

2 participants