doy : 6 // The week that contains Jan 1st is the first week of the year.
},
+ firstDayOfWeek : function () {
+ return this._week.dow;
+ },
+
+ firstDayOfYear : function () {
+ return this._week.doy;
+ },
+
_invalidDate: 'Invalid date',
invalidDate: function () {
return this._invalidDate;
test.done();
},
+ 'firstDayOfWeek firstDayOfYear locale getters' : function (test) {
+ moment.locale('something', {week: {dow: 3, doy: 4}});
+ moment.locale('something');
+ test.equal(moment.localeData().firstDayOfWeek(), 3, 'firstDayOfWeek');
+ test.equal(moment.localeData().firstDayOfYear(), 4, 'firstDayOfYear');
+
+ test.done();
+ },
+
'instance locale method' : function (test) {
moment.locale('en');