Revert "remove class based exercises"

This reverts commit 290e7f1da4.
This commit is contained in:
Cody Loyd
2017-11-24 14:23:16 -06:00
parent 4d1f419b41
commit 829730fb79
18 changed files with 164 additions and 67 deletions
+2 -5
View File
@@ -1,8 +1,5 @@
var leapYears = function(year) {
if (year % 4 !== 0 || (year % 100 == 0 && year % 400 != 0)) {
return false
}
return true
var leapYears = function() {
}
module.exports = leapYears
+5 -5
View File
@@ -4,19 +4,19 @@ describe('leapYears', function() {
it('works with non century years', function() {
expect(leapYears(1996)).toEqual(true);
});
it('works with non century years', function() {
xit('works with non century years', function() {
expect(leapYears(1997)).toEqual(false);
});
it('works with ridiculously futuristic non century years', function() {
xit('works with ridiculously futuristic non century years', function() {
expect(leapYears(34992)).toEqual(true);
});
it('works with century years', function() {
xit('works with century years', function() {
expect(leapYears(1900)).toEqual(false);
});
it('works with century years', function() {
xit('works with century years', function() {
expect(leapYears(1600)).toEqual(true);
});
it('works with century years', function() {
xit('works with century years', function() {
expect(leapYears(700)).toEqual(false);
});
});