mirror of https://github.com/tc39/test262.git
Include missing semicolons in Temporal tests.
This commit is contained in:
parent
631337b261
commit
e87b0048c4
|
@ -14,4 +14,4 @@ let cal = new Temporal.Calendar("iso8601");
|
||||||
"nanosecond"].forEach(function(largestUnit) {
|
"nanosecond"].forEach(function(largestUnit) {
|
||||||
assert.throws(RangeError, () => cal.dateUntil("2021-07-16", "2022-03-04", {largestUnit}),
|
assert.throws(RangeError, () => cal.dateUntil("2021-07-16", "2022-03-04", {largestUnit}),
|
||||||
'cal.dateUntil("2021-07-16", "2022-03-04", {largestUnit}) throws a RangeError exception');
|
'cal.dateUntil("2021-07-16", "2022-03-04", {largestUnit}) throws a RangeError exception');
|
||||||
})
|
});
|
||||||
|
|
|
@ -17,4 +17,4 @@ TemporalHelpers.assertDurationsEqual(feb21.since(feb20), oneYear, 'Returns year
|
||||||
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'auto' }), oneYear, 'Returns year by default');
|
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'auto' }), oneYear, 'Returns year by default');
|
||||||
|
|
||||||
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'years' }), oneYear, 'Returns year explicitly');
|
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'years' }), oneYear, 'Returns year explicitly');
|
||||||
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'months' }), twelveMonths, 'Returns months when requested.')
|
TemporalHelpers.assertDurationsEqual(feb21.since(feb20, { largestUnit: 'months' }), twelveMonths, 'Returns months when requested.');
|
||||||
|
|
Loading…
Reference in New Issue