Skip to content

Commit 2a03068

Browse files
ptomatoMs2ger
authored andcommitted
Fix Temporal.PlainDateTime.withPlainDate tests
I suggested in #3517 that these lines should be removed but didn't realize they must be present because TemporalHelpers.assertPlainDateTime is going to check the 'era' and 'eraYear' properties.
1 parent 0a48029 commit 2a03068

5 files changed

+10
-0
lines changed

test/built-ins/Temporal/PlainDateTime/prototype/withPlainDate/argument-plaindate-calendar-noniso.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
1010

1111
const cal = {
1212
id: 'thisisnotiso',
13+
era() { return undefined; },
14+
eraYear() { return undefined; },
1315
toString() { return "this is a string"; },
1416
year() { return 2008; },
1517
month() { return 9; },

test/built-ins/Temporal/PlainDateTime/prototype/withPlainDate/argument-plaindate-calendar-same-id.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const cal1 = {
1313
};
1414
const cal2 = {
1515
id: 'thisisnotiso',
16+
era() { return undefined; },
17+
eraYear() { return undefined; },
1618
toString() { return "this is a string"; },
1719
year() { return 2008; },
1820
month() { return 9; },

test/built-ins/Temporal/PlainDateTime/prototype/withPlainDate/argument-plaindate-calendar-same-object.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ includes: [temporalHelpers.js]
1111
let calls = 0;
1212
const cal = {
1313
id: 'thisisnotiso',
14+
era() { return undefined; },
15+
eraYear() { return undefined; },
1416
toString() {
1517
++calls;
1618
return "this is a string";

test/built-ins/Temporal/PlainDateTime/prototype/withPlainDate/argument-plaindate-calendar.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
1010

1111
const cal = {
1212
id: 'thisisnotiso',
13+
era() { return undefined; },
14+
eraYear() { return undefined; },
1315
toString() { return "this is a string"; },
1416
year() { return 2008; },
1517
month() { return 9; },

test/built-ins/Temporal/PlainDateTime/prototype/withPlainDate/argument-string-iso-calendar.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
1010

1111
const cal = {
1212
id: "thisisnotiso",
13+
era() { return undefined; },
14+
eraYear() { return undefined; },
1315
toString() { return "this is a string"; },
1416
year() { return 2008; },
1517
month() { return 9; },

0 commit comments

Comments
 (0)