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