]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Apply coding convention
authorJeeeyul <Jeeeyul@gmail.com>
Thu, 19 Dec 2013 09:23:24 +0000 (18:23 +0900)
committerJeeeyul <Jeeeyul@gmail.com>
Thu, 19 Dec 2013 09:23:24 +0000 (18:23 +0900)
lang/ko.js
test/lang/ko.js

index 1f87c55fb67a937ba19efb488ba363e2e08eb5f5..88639d6fb1cf18941b1c98ddd06faeb46d26c4f6 100644 (file)
@@ -56,8 +56,8 @@
         },
         ordinal : '%d일',
         meridiemParse : /(오전|오후)/i,
-        isPM : function(token){
-               return token == "오후";
+        isPM : function (token) {
+               return token === "오후";
         }
     });
 }));
index f77d340b8d071028582560060ab505cee35a30b5..f6a533abf4d2e4499513aecf11eba8a6e00a3705 100644 (file)
@@ -37,43 +37,42 @@ exports["lang:kr"] = {
         test.done();
     },
     
-    
-    "parse meridiem" : function (test){
-       var elements = [{
-               expression : "1981년 9월 8일 오후 2시 30분",
-               inputFormat : "YYYY[년] M[월] D[일] A h[시] m[분]",
-               outputFormat : "A",
-               expected : "오후"
-       },{
-               expression : "1981년 9월 8일 오전 2시 30분",
-               inputFormat : "YYYY[년] M[월] D[일] A h[시] m[분]",
-               outputFormat : "A h시",
-               expected : "오전 2시"
-       },{
-               expression : "14시 30분",
-               inputFormat : "H[시] m[분]",
-               outputFormat : "A",
-               expected : "오후"
-       },{
-               expression : "오후 4시",
-               inputFormat : "A h[시]",
-               outputFormat : "H",
-               expected : "16"
-       }];
+    "parse meridiem" : function (test) {
+        var elements = [{
+            expression : "1981년 9월 8일 오후 2시 30분",
+            inputFormat : "YYYY[년] M[월] D[일] A h[시] m[분]",
+            outputFormat : "A",
+            expected : "오후"
+        },{
+            expression : "1981년 9월 8일 오전 2시 30분",
+            inputFormat : "YYYY[년] M[월] D[일] A h[시] m[분]",
+            outputFormat : "A h시",
+            expected : "오전 2시"
+        },{
+            expression : "14시 30분",
+            inputFormat : "H[시] m[분]",
+            outputFormat : "A",
+            expected : "오후"
+        },{
+            expression : "오후 4시",
+            inputFormat : "A h[시]",
+            outputFormat : "H",
+            expected : "16"
+        }];
   
-       test.expect(elements.length);
-       
-               elements.forEach(function(it){
-                       var actual = moment(it.expression, it.inputFormat).format(it.outputFormat);
-                       
-                       test.equal(
-                               actual,
-                               it.expected, 
-                               "'" + it.outputFormat + "' of '" + it.expression + "' must be '" + it.expected + "' but was '" + actual + "'."
-                       );
-               });
-       
-       test.done();
+        test.expect(elements.length);
+        
+        elements.forEach(function(it){
+            var actual = moment(it.expression, it.inputFormat).format(it.outputFormat);
+            
+            test.equal(
+                actual,
+                it.expected, 
+                "'" + it.outputFormat + "' of '" + it.expression + "' must be '" + it.expected + "' but was '" + actual + "'."
+            );
+        });
+        
+        test.done();
     },
     
     "format" : function (test) {