We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3f7ca commit 0949091Copy full SHA for 0949091
polyfill/test/calendar.mjs
@@ -261,6 +261,10 @@ describe('Calendar', () => {
261
throws(() => iso.weekOfYear({ year: 2000 }), TypeError);
262
});
263
264
+ describe('edge cases for Calendar.weekOfYear()', () => {
265
+ it('week 1 from next year', () => equal(iso.weekOfYear(Temporal.PlainDate.from('2019-12-31')), 1));
266
+ it('week 53 from previous year', () => equal(iso.weekOfYear(Temporal.PlainDate.from('2021-01-01')), 53));
267
+ });
268
describe('Calendar.daysInWeek()', () => {
269
const res = 7;
270
it('accepts Date', () => equal(iso.daysInWeek(Temporal.PlainDate.from('1994-11-05')), res));
0 commit comments