jenkins-bot has submitted this change and it was merged.

Change subject: Bump chrono-node version
......................................................................


Bump chrono-node version

Increase chrono-node version, which includes
support for ordinal numbers.

Change-Id: I61a9ae430a42996a333fff76243537072cb5714b
---
M package.json
M test/features/unit/exporter.js
2 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Mobrovac: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/package.json b/package.json
index f19cd1f..0886ca2 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
     "bunyan": "1.8.1",
     "cassandra-uuid": "0.0.2",
     "cheerio": "0.20.0",
-    "chrono-node": "1.2.4",
+    "chrono-node": "1.2.5",
     "compression": "1.6.2",
     "content-type": "1.0.2",
     "core-js": "2.4.1",
diff --git a/test/features/unit/exporter.js b/test/features/unit/exporter.js
index 6b6d0a8..7240b54 100644
--- a/test/features/unit/exporter.js
+++ b/test/features/unit/exporter.js
@@ -81,9 +81,9 @@
             assert.deepEqual(result, expected);
         });
 
-        it('Badly sets normal date with ordinal number', function() {
+        it('Correctly sets normal date with ordinal number', function() {
             date = 'May eighth, 2010';
-            expected = {date: '2010-05-01'}; // Wrong sets to May 1st instead 
of May 8th
+            expected = {date: '2010-05-08'};
             result = exporter.fixDate({date:date});
             assert.deepEqual(result, expected);
         });

-- 
To view, visit https://gerrit.wikimedia.org/r/323825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I61a9ae430a42996a333fff76243537072cb5714b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/citoid
Gerrit-Branch: master
Gerrit-Owner: Mvolz <mv...@wikimedia.org>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to