Sha256: 99e0107098aaebc8c45fb24bf20e9742f693a575a94f10a7f0074d10e7af5b80
Contents?: true
Size: 940 Bytes
Versions: 71
Compression:
Stored size: 940 Bytes
Contents
import isLeapYear from './leap' describe('A leap year', () => { it('is not very common', () => { expect(isLeapYear(2015)).toBeFalsy() }) it('is introduced every 4 years to adjust about a day', () => { expect(isLeapYear(2016)).toBeTruthy() }) it('is skipped every 100 years to remove an extra day', () => { expect(isLeapYear(1900)).toBeFalsy() }) it('is reintroduced every 400 years to adjust another day', () => { expect(isLeapYear(2000)).toBeTruthy() }) describe('Additional example of a leap year that', () => { it('is not a leap year', () => { expect(isLeapYear(1978)).toBeFalsy() }) it('is a common leap year', () => { expect(isLeapYear(1992)).toBeTruthy() }) it('is skipped every 100 years', () => { expect(isLeapYear(2100)).toBeFalsy() }) it('is reintroduced every 400 years', () => { expect(isLeapYear(2400)).toBeTruthy() }) }) })
Version data entries
71 entries across 71 versions & 1 rubygems