1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +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:
Linus Groh 2021-09-01 00:31:22 +01:00
parent ed98c1afc7
commit f169ad61a4
5 changed files with 16 additions and 16 deletions

View file

@ -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", () => {

View file

@ -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", () => {

View file

@ -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", () => {

View file

@ -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", () => {