From: Iskren Chernev Date: Sun, 4 Dec 2016 02:12:13 +0000 (-0800) Subject: Remove null from typescrip tests X-Git-Tag: 2.17.1~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a361fac960ce376b982d665595680adb61841d2;p=thirdparty%2Fmoment.git Remove null from typescrip tests --- diff --git a/typing-tests/moment-tests.ts b/typing-tests/moment-tests.ts index 5a41aba01..f65ba6bd8 100644 --- a/typing-tests/moment-tests.ts +++ b/typing-tests/moment-tests.ts @@ -22,7 +22,8 @@ var array = [2010, 1, 14, 15, 25, 50, 125]; var day11 = moment(Date.UTC.apply({}, array)); var day12 = moment.unix(1318781876); -moment(null); +// TODO: reenable in 2.0 +// moment(null); moment(undefined); moment({ years: 2010, months: 3, days: 5, hours: 15, minutes: 10, seconds: 3, milliseconds: 123 }); moment("20140101", "YYYYMMDD", true); @@ -225,7 +226,8 @@ localLang.localeData(); localLang.format('LLLL'); globalLang.format('LLLL'); -moment.duration(null); +// TODO: reenable in 2.0 +// moment.duration(null); moment.duration(undefined); moment.duration(100); moment.duration(2, 'seconds'); @@ -259,9 +261,10 @@ moment.locale(); moment.locale('en'); moment.locale(['en', 'fr']); -moment.defineLocale('en', null); -moment.updateLocale('en', null); -moment.locale('en', null); +// TODO: Reenable in 2.0 +// moment.defineLocale('en', null); +// moment.updateLocale('en', null); +// moment.locale('en', null); // Defining a custom language: moment.locale('en', {