LibJS: Fix Temporal.PlainTime.prototype.equals test
The two plain times weren't being compared to each other.
This commit is contained in:
parent
62e0bf852e
commit
7788a7e744
Notes:
sideshowbarker
2024-07-18 04:28:12 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/7788a7e744b Pull-request: https://github.com/SerenityOS/serenity/pull/9891 Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,8 @@ describe("correct behavior", () => {
|
|||
test("basic functionality", () => {
|
||||
const firstPlainTime = new Temporal.PlainTime(1, 1, 1, 1, 1, 1);
|
||||
const secondPlainTime = new Temporal.PlainTime(0, 1, 1, 1, 1, 1);
|
||||
expect(firstPlainTime.equals(firstPlainTime));
|
||||
expect(!secondPlainTime.equals(secondPlainTime));
|
||||
expect(firstPlainTime.equals(firstPlainTime)).toBeTrue();
|
||||
expect(secondPlainTime.equals(secondPlainTime)).toBeTrue();
|
||||
expect(secondPlainTime.equals(firstPlainTime)).toBeFalse();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue