LibJS/Tests: Add length test for Temporal.Instant.prototype.equals()

This commit is contained in:
Linus Groh 2021-08-07 01:09:57 +01:00
commit cdb0c879d3
Notes: sideshowbarker 2024-07-18 07:19:22 +09:00

View file

@ -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));