From: Iskren Chernev Date: Tue, 14 Jun 2016 09:13:21 +0000 (-0700) Subject: Make jscs happy X-Git-Tag: 2.14.0~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cacef48eec6c5e88a85745aefd7eec2f8be5436;p=thirdparty%2Fmoment.git Make jscs happy --- diff --git a/src/test/locale/lv.js b/src/test/locale/lv.js index 43d54ae7a..4f83439af 100644 --- a/src/test/locale/lv.js +++ b/src/test/locale/lv.js @@ -155,7 +155,7 @@ test('from', function (assert) { assert.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true), 'gads', '1 year = a year'); assert.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true), '5 gadi', '5 years = 5 years'); assert.equal(start.from(moment([2007, 1, 28]).add({y: 5}), false), 'pirms 5 gadiem', '5 years with suffix = 5 years ago'); - + // test that numbers ending with 1 are singular except for when they end with 11 in which case they are plural assert.equal(start.from(moment([2007, 1, 28]).add({y: 11}), true), '11 gadi', '11 years = 11 years'); assert.equal(start.from(moment([2007, 1, 28]).add({y: 21}), true), '21 gads', '21 year = 21 year');