mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Implement the ECMA-402 PlainMonthDay.prototype.toLocaleString.js
This commit is contained in:
parent
697e68e68f
commit
bca70584b9
Notes:
github-actions[bot]
2024-11-29 08:53:27 +00:00
Author: https://github.com/trflynn89
Commit: bca70584b9
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 plainMonthDay;
|
||||
|
||||
plainMonthDay = new Temporal.PlainMonthDay(7, 6);
|
||||
expect(plainMonthDay.toLocaleString()).toBe("07-06");
|
||||
|
||||
plainMonthDay = new Temporal.PlainMonthDay(7, 6, "gregory", 2021);
|
||||
expect(plainMonthDay.toLocaleString()).toBe("2021-07-06[u-ca=gregory]");
|
||||
plainMonthDay = new Temporal.PlainMonthDay(7, 6, "gregory");
|
||||
expect(plainMonthDay.toLocaleString()).toBe("7/6");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue