Remove duplicated tests for PlainYearMonth.from overflow.

This is covered in overflow-wrong-type.js.
This commit is contained in:
Ms2ger 2022-02-01 15:42:47 +01:00 committed by Rick Waldron
parent dff7c70254
commit 7215b9387f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ const validValues = [
"2000-05",
];
validValues.forEach((value) => {
["", "CONSTRAIN", "balance", "other string", "constra\u0131n", 3, null].forEach((overflow) => {
["", "CONSTRAIN", "balance", "other string", "constra\u0131n"].forEach((overflow) => {
assert.throws(RangeError, () => Temporal.PlainYearMonth.from(value, { overflow }));
});
});