1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

LibJS: Fix length of PlainDateTime.withPlainTime

withPlainTime's argument is optional, so the length of the function is
actually 0.
This commit is contained in:
Luke Wilde 2022-11-03 20:54:54 +00:00 committed by Linus Groh
parent b26b18a0bc
commit ac67077b57
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
describe("correct behavior", () => {
test("length is 1", () => {
expect(Temporal.PlainDateTime.prototype.withPlainTime).toHaveLength(1);
test("length is 0", () => {
expect(Temporal.PlainDateTime.prototype.withPlainTime).toHaveLength(0);
});
test("basic functionality", () => {