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();
  });
});

@@ -494,13 +494,134 @@
 );%0A  %7D);
+%0A%0A  xtest('year divisible by 200, not divisible by 400: common year', () =%3E %7B%0A    expect(isLeap(1800)).toBeFalsy();%0A  %7D);
 %0A%7D);%0A

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