Skip to content

Commit 7b0b748

Browse files
jessealamaptomato
andauthored
Update test/intl402/Temporal/PlainMonthDay/from/buddhist-month-codes.js
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
1 parent 048170d commit 7b0b748

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/intl402/Temporal/PlainMonthDay/from/buddhist-month-codes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ for (const { monthCode, daysInMonth } of TemporalHelpers.ISOMonths) {
2727
{ calendar, monthCode, day: daysInMonth + 1 },
2828
{ overflow: "constrain" }
2929
);
30-
assert.sameValue(constrained.monthCode, monthCode, `${monthCode} should be preserved with constrain`);
31-
assert.sameValue(constrained.day, daysInMonth, `day ${daysInMonth + 1} should be constrained to ${daysInMonth} for ${monthCode}`);
30+
TemporalHelpers.assertPlainMonthDay(constrained, monthCode, daysInMonth, `day ${daysInMonth + 1} should be constrained to ${daysInMonth} for ${monthCode}`);
3231

3332
// Test reject overflow
3433
assert.throws(RangeError, () => {

0 commit comments

Comments
 (0)