From cdb0c879d3eb52976a3e6f67eb3565d95eb2e996 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 7 Aug 2021 01:09:57 +0100 Subject: [PATCH] LibJS/Tests: Add length test for Temporal.Instant.prototype.equals() --- .../builtins/Temporal/Instant/Instant.prototype.equals.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js index 85cc99fc44..b02d088745 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js @@ -1,4 +1,8 @@ describe("correct behavior", () => { + test("length is 1", () => { + expect(Temporal.Instant.prototype.equals).toHaveLength(1); + }); + test("basic functionality", () => { const instant1 = new Temporal.Instant(111n); expect(instant1.equals(instant1));