From c50db1735b1ff19801b5917593c21fb5017d9c2d Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Wed, 18 Dec 2013 21:27:57 +0400 Subject: [PATCH] moment: fixed test --- moment/moment-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moment/moment-tests.ts b/moment/moment-tests.ts index 9dd64d407..e993a3ad2 100644 --- a/moment/moment-tests.ts +++ b/moment/moment-tests.ts @@ -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 {