Skip to content

Commit

Permalink
Merge 0b77cb6 into 13a61b2
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshwar33 committed Oct 19, 2019
2 parents 13a61b2 + 0b77cb6 commit 4e2b2a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/locale/en-au.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default moment.defineLocale('en-au', {
return number + output;
},
week : {
dow : 1, // Monday is the first day of the week.
dow : 0, // Sunday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
20 changes: 10 additions & 10 deletions src/test/locale/en-au.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('format', function (assert) {
['D Do DD', '14 14th 14'],
['d do dddd ddd dd', '0 0th Sunday Sun Su'],
['DDD DDDo DDDD', '45 45th 045'],
['w wo ww', '6 6th 06'],
['w wo ww', '7 7th 07'],
['h hh', '3 03'],
['H HH', '15 15'],
['m mm', '25 25'],
Expand Down Expand Up @@ -202,11 +202,11 @@ test('calendar all else', function (assert) {
});

test('weeks year starting sunday formatted', function (assert) {
assert.equal(moment([2012, 0, 1]).format('w ww wo'), '52 52 52nd', 'Jan 1 2012 should be week 52');
assert.equal(moment([2012, 0, 1]).format('w ww wo'), '1 01 1st', 'Jan 1 2012 should be week 52');
assert.equal(moment([2012, 0, 2]).format('w ww wo'), '1 01 1st', 'Jan 2 2012 should be week 1');
assert.equal(moment([2012, 0, 8]).format('w ww wo'), '1 01 1st', 'Jan 8 2012 should be week 1');
assert.equal(moment([2012, 0, 8]).format('w ww wo'), '2 02 2nd', 'Jan 8 2012 should be week 1');
assert.equal(moment([2012, 0, 9]).format('w ww wo'), '2 02 2nd', 'Jan 9 2012 should be week 2');
assert.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2nd', 'Jan 15 2012 should be week 2');
assert.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3rd', 'Jan 15 2012 should be week 2');
});

// Concrete test for Locale#weekdaysMin
Expand All @@ -217,22 +217,22 @@ test('Weekdays sort by locale', function (assert) {
'weekdays start on Sunday');
assert.deepEqual(
moment().localeData('en-au').weekdays(true),
'Monday_Tuesday_Wednesday_Thursday_Friday_Saturday_Sunday'.split('_'),
'locale-sorted weekdays start on Monday');
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
'locale-sorted weekdays start on Sunday');
assert.deepEqual(
moment().localeData('en-au').weekdaysShort(),
'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
'weekdaysShort start on Sunday');
assert.deepEqual(
moment().localeData('en-au').weekdaysShort(true),
'Mon_Tue_Wed_Thu_Fri_Sat_Sun'.split('_'),
'locale-sorted weekdaysShort start on Monday');
'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
'locale-sorted weekdaysShort start on Sunday');
assert.deepEqual(
moment().localeData('en-au').weekdaysMin(),
'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
'weekdaysMin start on Sunday');
assert.deepEqual(
moment().localeData('en-au').weekdaysMin(true),
'Mo_Tu_We_Th_Fr_Sa_Su'.split('_'),
'locale-sorted weekdaysMin start on Monday');
'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
'locale-sorted weekdaysMin start on Sunday');
});

0 comments on commit 4e2b2a4

Please sign in to comment.