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