mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Implement the ECMA-402 PlainYearMonth.prototype.toLocaleString.js
This commit is contained in:
parent
bca70584b9
commit
ac0292b18f
Notes:
github-actions[bot]
2024-11-29 08:53:22 +00:00
Author: https://github.com/trflynn89
Commit: ac0292b18f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2615
2 changed files with 15 additions and 8 deletions
|
@ -6,11 +6,8 @@ describe("correct behavior", () => {
|
|||
test("basic functionality", () => {
|
||||
let plainYearMonth;
|
||||
|
||||
plainYearMonth = new Temporal.PlainYearMonth(2021, 7);
|
||||
expect(plainYearMonth.toLocaleString()).toBe("2021-07");
|
||||
|
||||
plainYearMonth = new Temporal.PlainYearMonth(2021, 7, "gregory", 6);
|
||||
expect(plainYearMonth.toLocaleString()).toBe("2021-07-06[u-ca=gregory]");
|
||||
plainYearMonth = new Temporal.PlainYearMonth(2021, 7, "gregory");
|
||||
expect(plainYearMonth.toLocaleString()).toBe("7/2021");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue