mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibJS: Make 'options' argument of Calendar prototype functions optional
This is a normative change in the Temporal spec.
See: 9cc913e
This commit is contained in:
parent
ed98c1afc7
commit
f169ad61a4
5 changed files with 16 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 3", () => {
|
||||
expect(Temporal.Calendar.prototype.dateAdd).toHaveLength(3);
|
||||
test("length is 2", () => {
|
||||
expect(Temporal.Calendar.prototype.dateAdd).toHaveLength(2);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 2", () => {
|
||||
expect(Temporal.Calendar.prototype.dateFromFields).toHaveLength(2);
|
||||
test("length is 1", () => {
|
||||
expect(Temporal.Calendar.prototype.dateFromFields).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 2", () => {
|
||||
expect(Temporal.Calendar.prototype.monthDayFromFields).toHaveLength(2);
|
||||
test("length is 1", () => {
|
||||
expect(Temporal.Calendar.prototype.monthDayFromFields).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 2", () => {
|
||||
expect(Temporal.Calendar.prototype.yearMonthFromFields).toHaveLength(2);
|
||||
test("length is 1", () => {
|
||||
expect(Temporal.Calendar.prototype.yearMonthFromFields).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue