moment: fixed test

This commit is contained in:
Igor Oleinikov
2013-12-18 21:27:57 +04:00
parent 85492e5dfa
commit c50db1735b
+2 -2
View File
@@ -258,7 +258,7 @@ moment.lang('en', {
});
moment.lang('en', {
months : function (momentToFormat, format) {
months : function (momentToFormat: Moment, format: string) {
// momentToFormat is the moment currently being formatted
// format is the formatting string
if (/^MMMM/.test(format)) { // if the format starts with 'MMMM'
@@ -277,7 +277,7 @@ moment.lang('en', {
});
moment.lang('en', {
monthsShort : function (momentToFormat, format) {
monthsShort : function (momentToFormat: Moment, format: string) {
if (/^MMMM/.test(format)) {
return this.nominative[momentToFormat.month()];
} else {