From: Adam Biggs Date: Fri, 20 Sep 2013 21:25:55 +0000 (-0700) Subject: Failing tests for moment.utc() returning null X-Git-Tag: 2.3.0~22^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bf5871f8fe1e7cd54eb56614eea14561d7a786f;p=thirdparty%2Fmoment.git Failing tests for moment.utc() returning null --- diff --git a/test/moment/create.js b/test/moment/create.js index 2697c83b1..62d3c8c1e 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -450,10 +450,13 @@ exports.create = { }, "null" : function (test) { - test.expect(3); + test.expect(6); test.equal(moment(''), null, "Calling moment('')"); test.equal(moment(null), null, "Calling moment(null)"); test.equal(moment('', 'YYYY-MM-DD'), null, "Calling moment('', 'YYYY-MM-DD')"); + test.equal(moment.utc(''), null, "Calling moment.utc('')"); + test.equal(moment.utc(null), null, "Calling moment.utc(null)"); + test.equal(moment.utc('', 'YYYY-MM-DD'), null, "Calling moment.utc('', 'YYYY-MM-DD')"); test.done(); },