UNPKG

cpt-waffle-lotide

Version:
20 lines (15 loc) 505 B
import calculateDayInYear from '../calculateDayInYear'; describe('calculateDaysInYear() tests', ():void => { it('1900/3/2 returns 61', ():void => { expect(calculateDayInYear("1900/3/2")).toBe(61); }) it('2000/3/2 returns 62', ():void => { expect(calculateDayInYear("2000/3/2")).toBe(62); }) it('2012/2/29 returns 60', ():void => { expect(calculateDayInYear("2012/2/29")).toBe(60); }) it('2015/12/31 returns 365', ():void => { expect(calculateDayInYear("2015/12/31")).toBe(365); }) })