Include missing semicolons in Temporal tests.

This commit is contained in:
James Wright 2022-01-18 22:46:06 -08:00 committed by Rick Waldron
parent 631337b261
commit e87b0048c4
2 changed files with 2 additions and 2 deletions

View File

@ -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');
}) });

View File

@ -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.');