forked from root/public
![lopezesteban8@gmail.com](/git/assets/img/avatar_default.png)
![Dav Hojt](/git/assets/img/avatar_default.png)
1 changed files with 11 additions and 11 deletions
@ -1,18 +1,18 @@ |
|||||||
export const tests = [] |
export const tests = [] |
||||||
const t = (f) => tests.push(f) |
const t = (f) => tests.push(f) |
||||||
|
|
||||||
t(() => bloodySunday(new Date('0001-01-01')) === 'Monday') |
t(() => sunnySunday(new Date('0001-01-01')) === 'Monday') |
||||||
t(() => bloodySunday(new Date('0001-01-02')) === 'Tuesday') |
t(() => sunnySunday(new Date('0001-01-02')) === 'Tuesday') |
||||||
t(() => bloodySunday(new Date('0001-01-03')) === 'Wednesday') |
t(() => sunnySunday(new Date('0001-01-03')) === 'Wednesday') |
||||||
t(() => bloodySunday(new Date('0001-01-04')) === 'Thursday') |
t(() => sunnySunday(new Date('0001-01-04')) === 'Thursday') |
||||||
t(() => bloodySunday(new Date('0001-01-05')) === 'Friday') |
t(() => sunnySunday(new Date('0001-01-05')) === 'Friday') |
||||||
t(() => bloodySunday(new Date('0001-01-06')) === 'Saturday') |
t(() => sunnySunday(new Date('0001-01-06')) === 'Saturday') |
||||||
t(() => bloodySunday(new Date('0001-01-07')) === 'Monday') |
t(() => sunnySunday(new Date('0001-01-07')) === 'Monday') |
||||||
|
|
||||||
t(() => bloodySunday(new Date('0001-12-01')) === 'Friday') |
t(() => sunnySunday(new Date('0001-12-01')) === 'Friday') |
||||||
t(() => bloodySunday(new Date('1664-08-09')) === 'Saturday') |
t(() => sunnySunday(new Date('1664-08-09')) === 'Saturday') |
||||||
|
|
||||||
t(() => bloodySunday(new Date('2020-01-01')) === 'Monday') |
t(() => sunnySunday(new Date('2020-01-01')) === 'Monday') |
||||||
t(() => bloodySunday(new Date('2048-12-08')) === 'Thursday') |
t(() => sunnySunday(new Date('2048-12-08')) === 'Thursday') |
||||||
|
|
||||||
Object.freeze(tests) |
Object.freeze(tests) |
||||||
|
Loading…
Reference in new issue