mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibJS: Implement Temporal.TimeZone.prototype.id
This commit is contained in:
parent
7f0fe352e2
commit
51c581f604
Notes:
sideshowbarker
2024-07-18 10:02:55 +09:00
Author: https://github.com/linusg
Commit: 51c581f604
Pull-request: https://github.com/SerenityOS/serenity/pull/8568
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/bgianfo ✅
4 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
describe("correct behavior", () => {
|
||||
test("basic functionality", () => {
|
||||
const timeZone = new Temporal.TimeZone("UTC");
|
||||
expect(timeZone.id).toBe("UTC");
|
||||
});
|
||||
|
||||
test("works with any this value", () => {
|
||||
expect(Reflect.get(Temporal.TimeZone.prototype, "id", "foo")).toBe("foo");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue