mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
moment: fixed test
This commit is contained in:
1 parent
85492e5dfa
commit
c50db1735b
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user