mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibJS: Implement Temporal.Calendar.prototype.dayOfWeek
This commit is contained in:
parent
59dc0e8421
commit
339b0a17e8
6 changed files with 57 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 1", () => {
|
||||
expect(Temporal.Calendar.prototype.dayOfWeek).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
const calendar = new Temporal.Calendar("iso8601");
|
||||
const date = new Temporal.PlainDate(2021, 7, 23);
|
||||
expect(calendar.dayOfWeek(date)).toBe(5);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue