]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Added test for module return value
authorMarius Gundersen <Marius.Gundersen@ciber.com>
Mon, 30 Sep 2013 12:38:20 +0000 (14:38 +0200)
committerMarius Gundersen <Marius.Gundersen@ciber.com>
Mon, 30 Sep 2013 12:52:38 +0000 (14:52 +0200)
58 files changed:
test/lang/ar-ma.js
test/lang/ar.js
test/lang/bg.js
test/lang/br.js
test/lang/ca.js
test/lang/cs.js
test/lang/cv.js
test/lang/da.js
test/lang/de.js
test/lang/el.js
test/lang/en-ca.js
test/lang/en-gb.js
test/lang/eo.js
test/lang/es.js
test/lang/et.js
test/lang/eu.js
test/lang/fa.js
test/lang/fi.js
test/lang/fr-ca.js
test/lang/fr.js
test/lang/gl.js
test/lang/he.js
test/lang/hi.js
test/lang/hr.js
test/lang/hu.js
test/lang/id.js
test/lang/is.js
test/lang/it.js
test/lang/ja.js
test/lang/ka.js
test/lang/ko.js
test/lang/lt.js
test/lang/lv.js
test/lang/ml.js
test/lang/mr.js
test/lang/ms-my.js
test/lang/nb.js
test/lang/ne.js
test/lang/nl.js
test/lang/nn.js
test/lang/pl.js
test/lang/pt-br.js
test/lang/pt.js
test/lang/ro.js
test/lang/ru.js
test/lang/sk.js
test/lang/sl.js
test/lang/sq.js
test/lang/sv.js
test/lang/th.js
test/lang/tr.js
test/lang/tzm-la.js
test/lang/tzm.js
test/lang/uk.js
test/lang/uz.js
test/lang/vn.js
test/lang/zh-cn.js
test/lang/zh-tw.js

index f03e76d99eef640befc6d192cddca669459251fd..7cd2c34d4a8ddae42ce708455e41e60839c66432 100644 (file)
@@ -340,6 +340,14 @@ exports["lang:ar-ma"] = {
         test.equal(moment([2012,  0, 13]).format('w ww wo'), '2 02 2', "Jan 13 2012 should be week 2");
         test.equal(moment([2012,  0, 14]).format('w ww wo'), '3 03 3', "Jan 14 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ar-ma'), 'ar-ma', "module should export ar-ma");
+        
         test.done();
     }
 };
index f3cf21afddfcd56a81ffe28b82c2921f2a782991..feed0d7e81aa54994e77874f1de781e56a87ebe2 100644 (file)
@@ -344,6 +344,14 @@ exports["lang:ar"] = {
         test.equal(moment([2012,  0, 13]).format('w ww wo'), '2 02 2', "Jan 13 2012 should be week 2");
         test.equal(moment([2012,  0, 14]).format('w ww wo'), '3 03 3', "Jan 14 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ar'), 'ar', "module should export ar");
+        
         test.done();
     }
 };
index 5d47888e15ddb3c8d9dfcbe314d5c28431c47470..616a68b38fb32b506f470048a2329b09a0750f26 100644 (file)
@@ -359,6 +359,14 @@ exports["lang:bg"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2-ри', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3-ти', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/bg'), 'bg', "module should export bg");
+        
         test.done();
     }
 };
index 25c775990d04ec4338fb31cc2b043b35a139775b..5195136fd38ab13f805c5fa8e47fefb59c09c318 100644 (file)
@@ -266,6 +266,14 @@ exports["lang:br"] = {
         test.equal(start.from(moment([2007, 1, 28]).add({y: 133}), true), "133 bloaz", "mutation 133 years");
         test.equal(start.from(moment([2007, 1, 28]).add({y: 148}), true), "148 vloaz", "mutation 148 years");
         test.equal(start.from(moment([2007, 1, 28]).add({y: 261}), true), "261 bloaz", "mutation 261 years");
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/br'), 'br', "module should export br");
+        
         test.done();
     }
 };
index c8b231c356b653e4636684f4c1fb7fa189a2b5bb..3c3934ff10a7b3aa1650d6d55f16d624d01b8a08 100644 (file)
@@ -313,6 +313,14 @@ exports["lang:ca"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2º', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2º', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ca'), 'ca', "module should export ca");
+        
         test.done();
     }
 };
index 47ee8032826a728287651e1a1009bca4dfa50558..8250d6c71cc484021935cd0675511cbcb6f6d5b0 100644 (file)
@@ -436,6 +436,14 @@ exports["lang:cs"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/cs'), 'cs', "module should export cs");
+        
         test.done();
     }
 };
index 054d70d2509845953da4e388e2473cb08f74bde1..271e1c499291d068dc9f8badf4ecfa8f8cd5ff13 100644 (file)
@@ -352,6 +352,14 @@ exports["lang:cv"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2-мĕш', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3-мĕш', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/cv'), 'cv', "module should export cv");
+        
         test.done();
     }
 };
index cf8447cdac5bd8945b848c1d6d80e173cd9e48a5..3204cbcb1d40bedeae23d487ab87927d7b3c7f54 100644 (file)
@@ -284,6 +284,14 @@ exports["lang:da"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/da'), 'da', "module should export da");
+        
         test.done();
     }
 };
index c93480e263a511873baf27afb2b5a22ee20ac990..ed20f5a635306c9e91d21b058ec57d919a3b7256 100644 (file)
@@ -345,6 +345,14 @@ exports["lang:de"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/de'), 'de', "module should export de");
+        
         test.done();
     }
 };
index 54bb277405f89bcd1ccc800e908ed117a943d692..7d7db44621ca2c5e33e016deb12a6972fbefb1dc 100644 (file)
@@ -376,6 +376,14 @@ exports["lang:el"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'),   '2 02 2η', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2η', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/el'), 'el', "module should export el");
+        
         test.done();
     }
 };
index 864daf2f961b4c0550da3a00e36ea8c0ce6adb81..d035186425d9965e6ca7dec058e7d50e6a33eb78 100644 (file)
@@ -373,6 +373,14 @@ exports["lang:en-ca"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2nd', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3rd', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/en-ca'), 'en-ca', "module should export en-ca");
+        
         test.done();
     }
 };
index f2340310e677dfe8c042606986406cd13f437f37..01485d15333a0b0d6e704506dd8cde5b36230202 100644 (file)
@@ -347,6 +347,14 @@ exports["lang:en-gb"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2nd', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2nd', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/en-gb'), 'en-gb', "module should export en-gb");
+        
         test.done();
     }
 };
index 0b645b5f47edeeea47ea5ccfb2ed17917e330b85..46f757114736e414958972bb2096cfb661fdefae 100644 (file)
@@ -354,6 +354,14 @@ exports["lang:eo"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2a', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3a', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/eo'), 'eo', "module should export eo");
+        
         test.done();
     }
 };
index 99c1e8efe4980e557a98346dec5b3a4fc600858d..e2b7799d3d9789c3cdee7200112516ff9b511737 100644 (file)
@@ -349,6 +349,14 @@ exports["lang:es"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2º', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2º', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/es'), 'es', "module should export es");
+        
         test.done();
     }
 };
index f542cd813476e106ddbc89c5c42aa2f27fb1603d..76f55540fe00f6547921c43f8fb4092460e5768e 100644 (file)
@@ -355,6 +355,14 @@ exports["lang:et"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/et'), 'et', "module should export et");
+        
         test.done();
     }
 };
index 87bd9596ec1b6b8a9d50c77348680d8721888a26..d8f9b6b1b6911806b5790b723ceb630eec61e793 100644 (file)
@@ -351,6 +351,14 @@ exports["lang:eu"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2.', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3.', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/eu'), 'eu', "module should export eu");
+        
         test.done();
     }
 };
index 7c7f28d93e3bbbdca94559ee5525daf6b65f80b1..4c20792fda92a99297e85b3c11f7a5ba8ad21a53 100644 (file)
@@ -333,6 +333,14 @@ exports["lang:fa"] = {
         test.equal(moment([2012,  0, 13]).format('w ww wo'), '۲ ۰۲ ۲م', "Jan 13 2012 should be week 2");
         test.equal(moment([2012,  0, 14]).format('w ww wo'), '۳ ۰۳ ۳م', "Jan 14 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/fa'), 'fa', "module should export fa");
+        
         test.done();
     }
 };
index 62b2e5630f3154ead581039f08105dac490c5bdf..02eda4859f42782ff221707b2b220f4641d479c5 100644 (file)
@@ -346,6 +346,14 @@ exports["lang:fi"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/fi'), 'fi', "module should export fi");
+        
         test.done();
     }
 };
index 56dc15d134a3e9edfdaff28285faf4672734b2d7..fccceaa0ef75f115eed9d23fae11dcd4078828f0 100644 (file)
@@ -366,6 +366,14 @@ exports["lang:fr-ca"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/fr-ca'), 'fr-ca', "module should export fr-ca");
+        
         test.done();
     }
 };
index 46d53728478e6788fc75b02dd18f8e7cfe27e3de..016a207f3ca052abee748775e39b4f6b64c50ae9 100644 (file)
@@ -349,6 +349,14 @@ exports["lang:fr"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/fr'), 'fr', "module should export fr");
+        
         test.done();
     }
 };
index 05049ace1f5577128029c116bb7c4e669a6ba92b..20e8db3f7c2327693a7cf84048a3b8f91a6e1257 100644 (file)
@@ -330,6 +330,14 @@ exports["lang:gl"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2º', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3º', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/gl'), 'gl', "module should export gl");
+        
         test.done();
     }
 };
index 140d8562815dbadf709d03392a40adbe24437e26..26984090e969b180e000810986a9662cbc03fa4e 100644 (file)
@@ -309,6 +309,14 @@ exports["lang:he"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/he'), 'he', "module should export he");
+        
         test.done();
     }
 };
index 0e98b41fcd222bf18661639c8058f33ee9f569e5..392f422dd70870f596b9eef82f1570ebb3370dec 100644 (file)
@@ -372,6 +372,14 @@ exports["lang:hi"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '२ ०२ २', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '३ ०३ ३', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/hi'), 'hi', "module should export hi");
+        
         test.done();
     }
 };
index b32b2643416d8022ddce763c8f522696afe21379..08bab6d8661d1f7f6348cad6dfd940b4a05a9a7b 100644 (file)
@@ -380,6 +380,14 @@ exports["lang:hr"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2.', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3.', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/hr'), 'hr', "module should export hr");
+        
         test.done();
     }
 };
index 70382fb31aed5e41926d6cfd2ac5c2ac3d604a34..3b3fe008f9ec544d71439991c35d9257019d0604 100644 (file)
@@ -351,6 +351,14 @@ exports["lang:hu"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2.', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3.', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/hu'), 'hu', "module should export hu");
+        
         test.done();
     }
 };
index 6f4f5d30a4a8bc780bd657b190d8f7b901a0d5a3..f8a23cabf1255c02492966e8cfded9df0fd9abe7 100644 (file)
@@ -306,6 +306,14 @@ exports["lang:id"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/id'), 'id', "module should export id");
+        
         test.done();
     }
 };
index 0f0f74b6482350fe3aa8ebd9bc7b881c08503f49..962ed5e69a8f8cf6d8b1aa19d9cedeffb398bb1d 100644 (file)
@@ -359,6 +359,14 @@ exports["lang:is"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/is'), 'is', "module should export is");
+        
         test.done();
     }
 };
index b5ed74a0f9314143085d4d1269ec0d9796101746..de964def4dfc43d1c8b576b928f21feb3f8e2667 100644 (file)
@@ -347,6 +347,14 @@ exports["lang:it"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2º', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2º', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/it'), 'it', "module should export it");
+        
         test.done();
     }
 };
index 148f677ae7256cb3d440f838ca1845b83286de72..794de0e9e02a948741409c0b549ddf3a31d6fdf3 100644 (file)
@@ -311,6 +311,14 @@ exports["lang:ja"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ja'), 'ja', "module should export ja");
+        
         test.done();
     }
 };
index 0250eea6d1950417a154e8b75d9b6d2c60ecc09a..fc2eedafe537336ece7a364a3f7b6f00fb9125df 100644 (file)
@@ -372,6 +372,14 @@ exports["lang:ka"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 მე-2', "იან  8 2012 უნდა იყოს კვირა 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 მე-3', "იან  9 2012 უნდა იყოს კვირა 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ka'), 'ka', "module should export ka");
+        
         test.done();
     }
 };
index 5d0310e411fd430d08b5da02a4a3fad503980095..911b584a2664eabcfbd3abbfd41aaffd7f3c7660 100644 (file)
@@ -358,6 +358,14 @@ exports["lang:kr"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2일', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3일', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ko'), 'ko', "module should export ko");
+        
         test.done();
     }
 };
index cf91b78a8d9f5ba6a63c8bacf8e250102b61e39b..f6a4cc9cf77dfaa71b39f1574302566ce5da2cd2 100644 (file)
@@ -357,6 +357,14 @@ exports["lang:lt"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2-oji', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2-oji', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/lt'), 'lt', "module should export lt");
+        
         test.done();
     }
 };
index 5b5c23c4eeeb56e204837e9adc283d2b536ab808..4c7e6d2ff710bacd7306daef0aa5f75152941519 100644 (file)
@@ -350,6 +350,14 @@ exports["lang:lv"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/lv'), 'lv', "module should export lv");
+        
         test.done();
     }
 };
index c0637f52dadd3d0711b89323d5066cf442ed7571..fd1e21aa8547710448f25c5519a04c9a09ca73a0 100644 (file)
@@ -372,6 +372,14 @@ exports["lang:ml"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ml'), 'ml', "module should export ml");
+        
         test.done();
     }
 };
index ee6767c50f0eb4be0bbb4895c91f2f3b30497337..f2877ca7ab23d6a482d52bb784ed4d5e3d2b8ba9 100644 (file)
@@ -372,6 +372,14 @@ exports["lang:mr"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '२ ०२ २', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '३ ०३ ३', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/mr'), 'mr', "module should export mr");
+        
         test.done();
     }
 };
index 24bc36632ad4c427653500265a913f8277e9dca3..e494a16b9961b3a59c1a2891f3ea17e2dc2ceb5a 100644 (file)
@@ -372,6 +372,14 @@ exports["lang:ms-my"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '3 03 3', "Jan 14 2012 sepatutnya minggu 3");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 sepatutnya minggu 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ms-my'), 'ms-my', "module should export ms-my");
+        
         test.done();
     }
 };
index c8f2c3c90fd17acc5f3d63d93d61b9280224bf99..42ccabd4a0c7d415838561e4d9fffabaa36b5d33 100644 (file)
@@ -351,6 +351,14 @@ exports["lang:nb"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/nb'), 'nb', "module should export nb");
+        
         test.done();
     }
 };
index a008382f25dd73c4926cbe6fffae625316b2c176..6ecca8c5c0e8adbd124fa6e28c2559c1bca15e8c 100644 (file)
@@ -370,6 +370,14 @@ exports["lang:ne"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '२ ०२ २', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '३ ०३ ३', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ne'), 'ne', "module should export ne");
+        
         test.done();
     }
 };
index cb4eb65c26a3b3ca04508629e17e1fb46f0fc655..e50fce14929c7942f5be1d47d171e4f1f83fef61 100644 (file)
@@ -361,6 +361,14 @@ exports["lang:nl"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),    '2 02 2de', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),    '2 02 2de', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/nl'), 'nl', "module should export nl");
+        
         test.done();
     }
 };
index 28105851aaa6d9f421643d34ec43deeb1b1217b6..70352ae93e62da1e8009494261339c855c32f28a 100644 (file)
@@ -350,6 +350,14 @@ exports["lang:nn"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/nn'), 'nn', "module should export nn");
+        
         test.done();
     }
 };
index cb8c1beeeda5b4233618b0aea2bc2b8a08adbd28..33731eb713fcc4769897307f0a46ed3209acab97 100644 (file)
@@ -369,6 +369,14 @@ exports["lang:pl"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/pl'), 'pl', "module should export pl");
+        
         test.done();
     }
 };
index 4e2e1395db8e1ef50cf5a2ef7fa52fbf3e7c8b44..84577b21e6591e6ba6ad94357d2705aabedeba8a 100644 (file)
@@ -352,6 +352,14 @@ exports["lang:pt-br"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2º', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3º', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/pt-br'), 'pt-br', "module should export pt-br");
+        
         test.done();
     }
 };
index 3cf62a07d3ae1fe994e2fd7e563aeb56a5dd45e5..6fe3b02262d28c115f2fb8675c9fb95f72f4322b 100644 (file)
@@ -342,6 +342,14 @@ exports["lang:pt"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),  '2 02 2º', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),  '2 02 2º', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/pt'), 'pt', "module should export pt");
+        
         test.done();
     }
 };
index 2e0080c457eb3c7e83e4fffc007f0e8e83ad56f4..5ed1ef839671179aa4450d19c7d8a4489dbcd618 100644 (file)
@@ -351,6 +351,14 @@ exports["lang:ro"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ro'), 'ro', "module should export ro");
+        
         test.done();
     }
 };
index 457e38d2610aa1b837f9a5e217a6054890b149fe..81576d5e8468429f795783fdbae9e1fa2a49d663 100644 (file)
@@ -415,6 +415,14 @@ exports["lang:ru"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2-я', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3-я', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/ru'), 'ru', "module should export ru");
+        
         test.done();
     }
 };
index 690ffcf2b2b8057b71f8fec569a1a15e809f04a7..bbd2077583f4d517112272a9883219e3c4cd9567 100644 (file)
@@ -436,6 +436,14 @@ exports["lang:sk"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/sk'), 'sk', "module should export sk");
+        
         test.done();
     }
 };
index 69259987a78aaf0d3abbba5ca865d0172204bc94..98b13bc7318fb78fedfd4e0e3a71aa0d32b1e97e 100644 (file)
@@ -379,6 +379,14 @@ exports["lang:sl"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2.', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3.', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/sl'), 'sl', "module should export sl");
+        
         test.done();
     }
 };
index f997b3ee04fe3cdb481cd2e2504b095cf0ee805a..da818f152c393df0084fe7ceedbaaf0face20a17 100644 (file)
@@ -373,6 +373,14 @@ exports["lang:sq"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2.', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2.', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/sq'), 'sq', "module should export sq");
+        
         test.done();
     }
 };
index 0df34c4eb20b7c911c8f19919ffe9ff1f82b442e..995dc73ea818d70c6094ed37959f3a71eb61bf2b 100644 (file)
@@ -344,6 +344,14 @@ exports["lang:sv"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2a', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2a', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/sv'), 'sv', "module should export sv");
+        
         test.done();
     }
 };
index bd835e0790155f048f77c633c1e0d82fdd1e588d..d826ca8d6ce52ddbb3e01531c1a6d426b5fe5db9 100644 (file)
@@ -311,6 +311,14 @@ exports["lang:th"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2', "Jan 14 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3', "Jan 15 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/th'), 'th', "module should export th");
+        
         test.done();
     }
 };
index b491daaa16c6d731e05398d523a740804b513f6b..88a55158a284f90ded99f09c186ffc7fb2a52bcf 100644 (file)
@@ -362,6 +362,14 @@ exports["lang:tr"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), "2 02 2'nci", "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), "3 03 3'üncü", "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/tr'), 'tr', "module should export tr");
+        
         test.done();
     }
 };
index 758fe6dcbc6c7beeef4273f3bd121905b98589ad..d1cd8683ffd99c05496e547173a212044efc0ecf 100644 (file)
@@ -350,6 +350,14 @@ exports["lang:tzm-la"] = {
         test.equal(moment([2012,  0, 13]).format('w ww wo'), '2 02 2', "Jan 13 2012 should be week 2");
         test.equal(moment([2012,  0, 14]).format('w ww wo'), '3 03 3', "Jan 14 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/tzm-la'), 'tzm-la', "module should export tzm-la");
+        
         test.done();
     }
 };
index 11b9bb86a3f170479b4335df106d8bd9b8e204b4..7172063189c397c32201b9723b458cce3e9e6185 100644 (file)
@@ -341,6 +341,14 @@ exports["lang:tzm"] = {
         test.equal(moment([2012,  0, 13]).format('w ww wo'), '2 02 2', "Jan 13 2012 should be week 2");
         test.equal(moment([2012,  0, 14]).format('w ww wo'), '3 03 3', "Jan 14 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/tzm'), 'tzm', "module should export tzm");
+        
         test.done();
     }
 };
index 1f9c499f0fb6c0c661caed58e92debf6f4256e0a..33645ac7ee88116f6efd6a1d7a30a2f9d16c8b4e 100644 (file)
@@ -381,6 +381,14 @@ exports["lang:uk"] = {
         test.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2-й', "Jan  8 2012 should be week 2");
         test.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3-й', "Jan  9 2012 should be week 3");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/uk'), 'uk', "module should export uk");
+        
         test.done();
     }
 };
index bd3097a965f1f88536758328c254900becce17e4..42c2f639356b2ad7340f7723e212bf12fa705010 100644 (file)
@@ -348,6 +348,14 @@ exports["lang:uz"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '3 03 3', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '3 03 3', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/uz'), 'uz', "module should export uz");
+        
         test.done();
     }
 };
index 520a13924a459bb2c0834353f327d7855a102102..43c032f871766c00d43bd4c04f568ba392d59f49 100644 (file)
@@ -374,6 +374,14 @@ exports["lang:vn"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2', "Jan 15 2012 should be week 2");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/vn'), 'vn', "module should export vn");
+        
         test.done();
     }
 };
index 1a0b9f77a0c109a1443dcad11bc741ec3d9f9581..8cafe8e649b7929a6473affaf627be1b14bab89b 100644 (file)
@@ -345,6 +345,14 @@ exports["lang:zh-cn"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2周', "Jan 14 2012 应该是第 2周");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3周', "Jan 15 2012 应该是第 3周");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/zh-cn'), 'zh-cn', "module should export zh-cn");
+        
         test.done();
     }
 };
index 7e94f98e2cde2e1e39762386462092a93c194fdd..eccdd867cdb4c5378e1c8fb0b30fbcbf359c63e6 100644 (file)
@@ -346,6 +346,14 @@ exports["lang:zh-tw"] = {
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2週', "Jan 14 2012 應該是第 2週");
         test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3週', "Jan 15 2012 應該是第 3週");
 
+        test.done();
+    },
+    
+    "returns the name of the language" : function (test) {
+        test.expect(1);
+        
+        test.equal(require('../../lang/zh-tw'), 'zh-tw', "module should export zh-tw");
+        
         test.done();
     }
 };