You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('Samoa date line change (add): 10:00PM 29 Dec 2011 -> 11:00PM 31 Dec 2011',()=>{consttimeZone='Pacific/Apia'constdayBeforeSamoaDateLineChangeAbs=timeZone.getInstantFor(dateTimeFns.fromNumbers(2011,12,29,22))conststart=dayBeforeSamoaDateLineChangeAbs.toZonedDateTimeISO(timeZone)constadded=zonedDateTimeFns.add(start,{days: 1,hours: 1})assert.equal(added.day,31)assert.equal(added.hour,23)assert.equal(added.minute,0)constdiff=zonedDateTimeFns.until(start,added,{largestUnit: 'days'})assert.equal(`${diff}`,'P2DT1H')constundo=zonedDateTimeFns.subtract(added,diff)assert.equal(`${undo}`,`${start}`)})it('Samoa date line change (subtract): 11:00PM 31 Dec 2011 -> 10:00PM 29 Dec 2011',()=>{consttimeZone='Pacific/Apia'constdayAfterSamoaDateLineChangeAbs=timeZone.getInstantFor(dateTimeFns.fromNumbers(2011,12,31,23))conststart=dayAfterSamoaDateLineChangeAbs.toZonedDateTimeISO(timeZone)constskipped=start.subtract({days: 1,hours: 1})assert.equal(skipped.day,31)assert.equal(skipped.hour,22)assert.equal(skipped.minute,0)constend=start.subtract({days: 2,hours: 1})assert.equal(end.day,29)assert.equal(end.hour,22)assert.equal(end.minute,0)constdiff=end.since(start,{largestUnit: 'days'})assert.equal(`${diff}`,'-P2DT1H')constundo=zonedDateTimeFns.add(start,diff)assert.equal(`${undo}`,`${end}`)})
The temporal proposal tests use functions to test the Somoa date line change that we do not implement (e.g. the timezone "type"). We should create tests around this.
The text was updated successfully, but these errors were encountered:
The temporal proposal tests use functions to test the Somoa date line change that we do not implement (e.g. the timezone "type"). We should create tests around this.
The text was updated successfully, but these errors were encountered: