1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

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
parent a8ba2f4b21
commit cdb0c879d3

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