mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
730 B
19 lines
730 B
5 years ago
|
export const tests = []
|
||
|
const t = (f) => tests.push(f)
|
||
|
|
||
2 years ago
|
t(() => sunnySunday(new Date('0001-01-01')) === 'Monday')
|
||
|
t(() => sunnySunday(new Date('0001-01-02')) === 'Tuesday')
|
||
|
t(() => sunnySunday(new Date('0001-01-03')) === 'Wednesday')
|
||
|
t(() => sunnySunday(new Date('0001-01-04')) === 'Thursday')
|
||
|
t(() => sunnySunday(new Date('0001-01-05')) === 'Friday')
|
||
|
t(() => sunnySunday(new Date('0001-01-06')) === 'Saturday')
|
||
|
t(() => sunnySunday(new Date('0001-01-07')) === 'Monday')
|
||
5 years ago
|
|
||
2 years ago
|
t(() => sunnySunday(new Date('0001-12-01')) === 'Friday')
|
||
|
t(() => sunnySunday(new Date('1664-08-09')) === 'Saturday')
|
||
5 years ago
|
|
||
2 years ago
|
t(() => sunnySunday(new Date('2020-01-01')) === 'Monday')
|
||
|
t(() => sunnySunday(new Date('2048-12-08')) === 'Thursday')
|
||
5 years ago
|
|
||
|
Object.freeze(tests)
|