mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Implement the ECMA-402 PlainTime.prototype.toLocaleString.js
This commit is contained in:
parent
ac0292b18f
commit
224304cd56
Notes:
github-actions[bot]
2024-11-29 08:53:17 +00:00
Author: https://github.com/trflynn89
Commit: 224304cd56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2615
2 changed files with 14 additions and 3 deletions
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue