18cffeb940
This reverts commit 4c771f2e05
.
22 lines
690 B
JavaScript
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);
|
|
});
|
|
});
|