odin-javascript-exercises/leapYears/leapYears.spec.js
Tatiana 18cffeb940 Revert "update cloning link"
This reverts commit 4c771f2e05.
2021-05-08 11:25:04 -07:00

22 lines
690 B
JavaScript

const leapYears = require("./leapYears");
describe("leapYears", () => {
test("works with non century years", () => {
expect(leapYears(1996)).toBe(true);
});
xit("works with non century years", function () {
expect(leapYears(1997)).toEqual(false);
});
xit("works with ridiculously futuristic non century years", function () {
expect(leapYears(34992)).toEqual(true);
});
xit("works with century years", function () {
expect(leapYears(1900)).toEqual(false);
});
xit("works with century years", function () {
expect(leapYears(1600)).toEqual(true);
});
xit("works with century years", function () {
expect(leapYears(700)).toEqual(false);
});
});