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:
parent
a8ba2f4b21
commit
cdb0c879d3
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue