assert.equal(moment([2012, 0, 9]).format('w ww wo'), '2 02 2.', 'Jan 9 2012 should be week 2');
assert.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2.', 'Jan 15 2012 should be week 2');
});
-
-test('valid localeData', function (assert) {
- assert.equal(moment().localeData().months().length, 12, 'months should return 12 months');
- assert.equal(moment().localeData().monthsShort().length, 12, 'monthsShort should return 12 months');
- assert.equal(moment().localeData().weekdays().length, 7, 'weekdays should return 7 days');
- assert.equal(moment().localeData().weekdaysShort().length, 7, 'weekdaysShort should return 7 days');
- assert.equal(moment().localeData().weekdaysMin().length, 7, 'monthsShort should return 7 days');
-});
assert.equal(moment([2012, 0, 9]).format('w ww wo'), '2 02 2', 'Jan 9 2012 should be week 2');
assert.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', 'Jan 15 2012 should be week 3');
});
-
-test('valid localeData', function (assert) {
- assert.equal(moment().localeData().months().length, 12, 'months should return 12 months');
- assert.equal(moment().localeData().monthsShort().length, 12, 'monthsShort should return 12 months');
- assert.equal(moment().localeData().weekdays().length, 7, 'weekdays should return 7 days');
- assert.equal(moment().localeData().weekdaysShort().length, 7, 'weekdaysShort should return 7 days');
- assert.equal(moment().localeData().weekdaysMin().length, 7, 'monthsShort should return 7 days');
-});