From 6762378f8901b013b1cc1d18bd1560faa6713872 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 7 Aug 2021 01:10:15 +0100 Subject: [PATCH] LibJS/Tests: Add length test for Temporal.Instant.prototype.round() --- .../builtins/Temporal/Instant/Instant.prototype.round.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js index aeda521831..58d98a3f15 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js @@ -1,4 +1,8 @@ describe("correct behavior", () => { + test("length is 1", () => { + expect(Temporal.Instant.prototype.round).toHaveLength(1); + }); + test("basic functionality", () => { const instant = new Temporal.Instant(1111111111111n); expect(instant.round({ smallestUnit: "second" }).epochNanoseconds).toBe(1111000000000n);