]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Add a test
authorKunal Marwaha <marwahaha@berkeley.edu>
Wed, 8 Mar 2017 08:47:39 +0000 (00:47 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 11 Mar 2017 23:28:45 +0000 (01:28 +0200)
typing-tests/moment-tests.ts

index f65ba6bd863869bf3c6d4df49d7d3d498447ee64..3c93e605f162145bf775cc06229d9ddf75e215ac 100644 (file)
@@ -240,6 +240,15 @@ moment.duration({
     months: 2,
     years: 2
 });
+moment.duration({
+    s: 2,
+    m: 2,
+    h: 2,
+    d: 2,
+    w: 2,
+    M: 2,
+    y: 2,
+});
 moment.duration(1, "minutes").humanize();
 moment.duration(500).milliseconds();
 moment.duration(500).asMilliseconds();