Sha256: f87c09ac776d2fb60a4348b5e4ecaf90b0c2fcc6d8d9b07235bd95824d89e404

Contents?: true

Size: 411 Bytes

Versions: 46

Compression:

Stored size: 411 Bytes

Contents

import { module, test } from '../qunit';
import moment from '../../moment';

module('leap year');

test('leap year', function (assert) {
    assert.equal(moment([2010, 0, 1]).isLeapYear(), false, '2010');
    assert.equal(moment([2100, 0, 1]).isLeapYear(), false, '2100');
    assert.equal(moment([2008, 0, 1]).isLeapYear(), true, '2008');
    assert.equal(moment([2000, 0, 1]).isLeapYear(), true, '2000');
});

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.15.0 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.14.2 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.14.1 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.14.0 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.13.4 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.13.3 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.13.2 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.13.1 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.13.0 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.7 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.12.0 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.6 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.5 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.4 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.3 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.2 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.1 vendor/moment/src/test/moment/leapyear.js
card-mod-date-0.11.0 vendor/moment/src/test/moment/leapyear.js
card-1.100.0 mod/date/vendor/moment/src/test/moment/leapyear.js