LibJS: Implement the ECMA-402 PlainTime.prototype.toLocaleString.js

This commit is contained in:
Timothy Flynn 2024-11-27 16:30:12 -05:00 committed by Andreas Kling
commit 224304cd56
Notes: github-actions[bot] 2024-11-29 08:53:17 +00:00
2 changed files with 14 additions and 3 deletions

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
test("basic functionality", () => {
const plainTime = new Temporal.PlainTime(18, 14, 47, 123, 456, 789);
expect(plainTime.toLocaleString()).toBe("18:14:47.123456789");
expect(plainTime.toLocaleString()).toBe("6:14:47 PM");
});
});