summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-01 00:31:22 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-01 15:11:35 +0100
commitf169ad61a4e71e7160564a4b6bad04c4dc431389 (patch)
tree36616045890119b035cf2fb592d44d1eaa2dce8e /Userland/Libraries/LibJS/Tests
parented98c1afc7840e243345e4457f7641e3be552185 (diff)
downloadserenity-f169ad61a4e71e7160564a4b6bad04c4dc431389.zip
LibJS: Make 'options' argument of Calendar prototype functions optional
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/9cc913e
Diffstat (limited to 'Userland/Libraries/LibJS/Tests')
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateAdd.js4
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateFromFields.js4
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.monthDayFromFields.js4
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.yearMonthFromFields.js4
4 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateAdd.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateAdd.js
index dcdb1f36a4..f01775a492 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateAdd.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateAdd.js
@@ -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", () => {
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateFromFields.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateFromFields.js
index 552518d014..5485af1c74 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateFromFields.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.dateFromFields.js
@@ -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", () => {
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.monthDayFromFields.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.monthDayFromFields.js
index 6d55420c28..f1a62165a8 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.monthDayFromFields.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.monthDayFromFields.js
@@ -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", () => {
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.yearMonthFromFields.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.yearMonthFromFields.js
index 058a137cd7..83630a7bac 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.yearMonthFromFields.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.yearMonthFromFields.js
@@ -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", () => {