1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

LibJS: Implement Temporal.TimeZone.prototype.id

This commit is contained in:
Linus Groh 2021-07-08 20:51:57 +01:00
parent 7f0fe352e2
commit 51c581f604
4 changed files with 23 additions and 0 deletions

View file

@ -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");
});
});