-
Notifications
You must be signed in to change notification settings - Fork 152
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
Sub-minute time zone offsets #1035
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1035 +/- ##
==========================================
- Coverage 94.33% 94.33% -0.01%
==========================================
Files 18 18
Lines 6404 6420 +16
Branches 950 959 +9
==========================================
+ Hits 6041 6056 +15
- Misses 356 357 +1
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
const zone = new Temporal.TimeZone('Europe/Amsterdam'); | ||
const inst = Temporal.Instant.from('1900-01-01T12:00Z'); | ||
const dtm = Temporal.DateTime.from('1900-01-01T12:00'); | ||
it(`${zone} has ID ${zone}`, () => equal(zone.id, `${zone}`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A feel a bit iffy about comparing two computed values, one of these should ideally be a constant, otherwise they could both be the wrong yet the same and it would pass. That said, it's a very minor nit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already the case in the other tests surrounding this one, but maybe it's worth a follow up issue if you want to open one?
Closes: #935