From: Will Dembinski Date: Fri, 6 Jan 2017 05:26:28 +0000 (-0800) Subject: Removed unwarranted spaces, changed illegal quotes X-Git-Tag: 2.19.0~48^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3704%2Fhead;p=thirdparty%2Fmoment.git Removed unwarranted spaces, changed illegal quotes --- diff --git a/src/lib/utils/is-numeric.js b/src/lib/utils/is-numeric.js index 5769554cb..64a5822dc 100644 --- a/src/lib/utils/is-numeric.js +++ b/src/lib/utils/is-numeric.js @@ -1,6 +1,6 @@ export default function isNumeric(val) { var _val = +val; return (val !== val + 1) && //infinity check - ( _val === +val ) && //Cute coercion check + (_val === +val) && //Cute coercion check (typeof val !== 'object'); //Array/object check } diff --git a/src/test/moment/getters_setters.js b/src/test/moment/getters_setters.js index de2f0e284..f50decad4 100644 --- a/src/test/moment/getters_setters.js +++ b/src/test/moment/getters_setters.js @@ -117,7 +117,7 @@ test('setters should handle garbage input', function (assert) { a.day(-Infinity); a.hours(new Date()); a.minutes({a:1,b:2}); - a.seconds("foo"); + a.seconds('foo'); a.milliseconds(Infinity); assert.equal(a.year(), 2011, 'year');