import { isLeap } from './leap';

describe('A leap year', () => {
  test('year not divisible by 4: common year', () => {
    expect(isLeap(2015)).toBeFalsy();
  });

  xtest('year divisible by 4, not divisible by 100: leap year', () => {
    expect(isLeap(2016)).toBeTruthy();
  });

  xtest('year divisible by 100, not divisible by 400: common year', () => {
    expect(isLeap(2100)).toBeFalsy();
  });

  xtest('year divisible by 400: leap year', () => {
    expect(isLeap(2000)).toBeTruthy();
  });
});

import { isLeap } from './leap';

describe('A leap year', () => {
  test('year not divisible by 4: common year', () => {
    expect(isLeap(2015)).toBeFalsy();
  });

  xtest('year divisible by 4, not divisible by 100: leap year', () => {
    expect(isLeap(2016)).toBeTruthy();
  });

  xtest('year divisible by 100, not divisible by 400: common year', () => {
    expect(isLeap(2100)).toBeFalsy();
  });

  xtest('year divisible by 400: leap year', () => {
    expect(isLeap(2000)).toBeTruthy();
  });

  xtest('year divisible by 200, not divisible by 400: common year', () => {
    expect(isLeap(1800)).toBeFalsy();
  });
});

Update Leap tests to match canonical data in v1.4.0 (#516)