tracks/javascript/exercises/leap/leap.spec.js in trackler-2.2.1.37 vs tracks/javascript/exercises/leap/leap.spec.js in trackler-2.2.1.38
- old
+ new
@@ -1,32 +1,30 @@
var Year = require('./leap');
-describe('Leap year', function() {
-
- it('is not very common', function() {
+describe('Leap year', function () {
+ it('is not very common', function () {
var year = new Year(2015);
expect(year.isLeap()).toBe(false);
});
- xit('is introduced every 4 years to adjust about a day', function() {
+ xit('is introduced every 4 years to adjust about a day', function () {
var year = new Year(2016);
expect(year.isLeap()).toBe(true);
});
- xit('is skipped every 100 years to remove an extra day', function() {
+ xit('is skipped every 100 years to remove an extra day', function () {
var year = new Year(1900);
expect(year.isLeap()).toBe(false);
});
- xit('is reintroduced every 400 years to adjust another day', function() {
+ xit('is reintroduced every 400 years to adjust another day', function () {
var year = new Year(2000);
expect(year.isLeap()).toBe(true);
});
// Feel free to enable the following tests to check some more examples
xdescribe('Additional example of a leap year that', function () {
-
it('is not a leap year', function () {
var year = new Year(1978);
expect(year.isLeap()).toBe(false);
});
@@ -42,9 +40,7 @@
it('is reintroduced every 400 years', function () {
var year = new Year(2400);
expect(year.isLeap()).toBe(true);
});
-
});
-
});