]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
quarter in the normalize unit test 1586/head
authorAndrei Cocorean <andrei-cocorean@users.noreply.github.com>
Sun, 6 Apr 2014 18:03:18 +0000 (20:03 +0200)
committerAndrei Cocorean <andrei-cocorean@users.noreply.github.com>
Sun, 6 Apr 2014 18:08:16 +0000 (20:08 +0200)
test/moment/normalizeUnits.js

index 25238b99d2bdec340471410cbe0391a243aa3746..1bfb534d3c13ac69d9cf864e134b3e787fc85f6c 100644 (file)
@@ -11,8 +11,8 @@ exports.normalizeUnits = {
     },
 
     "normalize units" : function (test) {
-        var fullKeys = ["year", "month", "isoWeek", "week", "day", "hour", "minute", "second", "millisecond", "date", 'dayOfYear', 'weekday', 'isoWeekday', 'weekYear', 'isoWeekYear'],
-            aliases = ["y", "M", "W", "w", "d", "h", "m", "s", "ms", "D", 'DDD', 'e', 'E', 'gg', 'GG'],
+        var fullKeys = ["year", "quarter", "month", "isoWeek", "week", "day", "hour", "minute", "second", "millisecond", "date", 'dayOfYear', 'weekday', 'isoWeekday', 'weekYear', 'isoWeekYear'],
+            aliases = ["y", "Q", "M", "W", "w", "d", "h", "m", "s", "ms", "D", 'DDD', 'e', 'E', 'gg', 'GG'],
             length = fullKeys.length,
             fullKey,
             fullKeyCaps,