]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
defineLocale() now returns the actual locale. Removed tests for the return statement...
authorIsaac Cambron <isaac@isaaccambron.com>
Wed, 23 Jul 2014 03:52:55 +0000 (23:52 -0400)
committerIsaac Cambron <isaac@isaaccambron.com>
Wed, 23 Jul 2014 03:52:55 +0000 (23:52 -0400)
75 files changed:
moment.js
test/locale/ar-ma.js
test/locale/ar-sa.js
test/locale/ar.js
test/locale/az.js
test/locale/bg.js
test/locale/bn.js
test/locale/br.js
test/locale/bs.js
test/locale/ca.js
test/locale/cs.js
test/locale/cv.js
test/locale/cy.js
test/locale/da.js
test/locale/de-at.js
test/locale/de.js
test/locale/el.js
test/locale/en-au.js
test/locale/en-ca.js
test/locale/en-gb.js
test/locale/eo.js
test/locale/es.js
test/locale/et.js
test/locale/eu.js
test/locale/fa.js
test/locale/fi.js
test/locale/fo.js
test/locale/fr-ca.js
test/locale/fr.js
test/locale/gl.js
test/locale/he.js
test/locale/hi.js
test/locale/hr.js
test/locale/hu.js
test/locale/hy-am.js
test/locale/id.js
test/locale/is.js
test/locale/it.js
test/locale/ja.js
test/locale/ka.js
test/locale/km.js
test/locale/ko.js
test/locale/lb.js
test/locale/lt.js
test/locale/lv.js
test/locale/mk.js
test/locale/ml.js
test/locale/mr.js
test/locale/ms-my.js
test/locale/nb.js
test/locale/ne.js
test/locale/nl.js
test/locale/nn.js
test/locale/pl.js
test/locale/pt-br.js
test/locale/pt.js
test/locale/ro.js
test/locale/ru.js
test/locale/sk.js
test/locale/sl.js
test/locale/sq.js
test/locale/sr-cyrl.js
test/locale/sr.js
test/locale/sv.js
test/locale/ta.js
test/locale/th.js
test/locale/tl-ph.js
test/locale/tr.js
test/locale/tzm-latn.js
test/locale/tzm.js
test/locale/uk.js
test/locale/uz.js
test/locale/vi.js
test/locale/zh-cn.js
test/locale/zh-tw.js

index 3b2fd4a589fd075b013a5b90d18c7b432dbe8364..4596ea8776f76a1cc3828a9d04ef5be3e1f1cf64 100644 (file)
--- a/moment.js
+++ b/moment.js
         var data;
         if (key) {
             if (typeof(values) !== "undefined") {
-                moment.defineLocale(key, values);
+                data = moment.defineLocale(key, values);
+            }
+            else {
+                data = moment.localeData(key);
             }
-
-            data = moment.localeData(key);
 
             if (data) {
                 moment.duration.fn._locale = moment.fn._locale = data;
                 locales[name] = new Locale();
             }
             locales[name].set(values);
-            return locales[name]._abbr;
+            return locales[name];
         } else {
             delete locales[name];
             return null;
index d6f2c49a0ba925f301110e4d7b888e9d90456c3e..8d45d7a7c573cf846b66984edbeebffacf0e4e78 100644 (file)
@@ -309,13 +309,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ar-ma'), 'ar-ma', "module should export ar-ma");
-        }
         test.done();
     }
 };
index b3c7c3ca9623e69e98d3a8f0e971ed8d5e1bfc11..963f49ed7369c79b2e332886cb160c1201b3858a 100644 (file)
@@ -351,13 +351,6 @@ exports["locale:ar-sa"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ar-sa'), 'ar-sa', "module should export ar-sa");
-        }
         test.done();
     }
 };
index 005184595e46db677166da16b6da0f1ff3382e9b..e663396a3927f1194b9ece95022af29c257b5971 100644 (file)
@@ -314,13 +314,6 @@ exports["locale:ar"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ar'), 'ar', "module should export ar");
-        }
         test.done();
     }
 };
index 8280e203731a5297f0d9e20fb422478455b1e0ad..b1944f0dca17130a3ee7203eb5ffb29d5a781bd3 100644 (file)
@@ -360,14 +360,6 @@ exports["locale:az"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/az'), 'az', "module should export az");
-        }
-
         test.done();
     }
 };
index 8fa82108601776cc1353de2acf31d0ced67d2ee8..162c06ba38f35b2bf66ac7315b0f8cd60186861c 100644 (file)
@@ -328,14 +328,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/bg'), 'bg', "module should export bg");
-        }
-
         test.done();
     }
 };
index 15cb3611bd9cfae4b3c9241753a9e1c71ade9f7a..9f6f0637f24da4fb040321eebd7754e82988f569 100644 (file)
@@ -369,14 +369,6 @@ exports["locale:bn"] = {
         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 localeuage" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/bn'), 'bn', "module should export bn");
-        }
-
         test.done();
     }
 };
index cd0649e4c1c7324cd0f105eb5605ad7daecc1dd9..5a98d8e738ca6369b1aeaf57aaaf7ebe316936ab 100644 (file)
@@ -253,14 +253,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/br'), 'br', "module should export br");
-        }
-
         test.done();
     }
 };
index 48a36f4917006906211d2e30bd6da24313525276..367239bd2011038a81af0024e9179337fe5ec461 100644 (file)
@@ -347,14 +347,6 @@ exports["locale:bs"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/bs'), 'bs', "module should export bs");
-        }
-
         test.done();
     }
 };
index 5dc47e145c32e8b78c1fa53e338e6094df7e9859..7c53f95d37216322708ef8abdb365f48e590a38e 100644 (file)
@@ -282,14 +282,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ca'), 'ca', "module should export ca");
-        }
-
         test.done();
     }
 };
index 68efebcd7d704a0d3fac69b81d5ed70d148b8329..5ab6a358980075108a59c1d9b9e433454bca881e 100644 (file)
@@ -403,14 +403,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/cs'), 'cs', "module should export cs");
-        }
-
         test.done();
     }
 };
index f72dde3785a418dcd29d9c109b136bca1b49abfb..a8340983ebcf2dc4a84b424d57fffda7f6dd952b 100644 (file)
@@ -316,14 +316,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/cv'), 'cv', "module should export cv");
-        }
-
         test.done();
     }
 };
index ec78aa82e240b7ff9e21abe0644a7bb2b42f70da..cd0d1ea3ce814d327aa01b873975ec1b15123832 100644 (file)
@@ -311,14 +311,6 @@ exports["locale:cy"] = {
         test.equal(moment([2012, 0,  9]).format('w ww wo'),   '2 02 2il', "Jan  9 2012 should be week 2");
         test.equal(moment([2012, 0, 15]).format('w ww wo'),   '2 02 2il', "Jan 15 2012 should be week 2");
 
-        test.done();
-    },
-
-    "returns the name of the localeuage" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/cy'), 'cy', "module should export cy");
-        }
-
         test.done();
     }
 };
index cc95d402b2ee0d8a19ac0c4e5d97cac7a8bfe0fc..f18da149da03ad5241953ace1772daf41e058736 100644 (file)
@@ -260,14 +260,6 @@ exports["locale: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 localeuage" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/da'), 'da', "module should export da");
-        }
-
         test.done();
     }
 };
index 30c7385d2abc62c8e6faf130ee187c38ead4b64d..bd4a639253530a471261cd6d04794665220d58ec 100644 (file)
@@ -346,14 +346,6 @@ exports["locale:de-at"] = {
         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 localeuage": function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/de-at'), 'de-at', "module should export de-at");
-        }
-
         test.done();
     }
 };
index b9f9abd0c3bd86930e72216376903906308e73ff..92df50c75556a42486d0cad48b5460b55b868bf6 100644 (file)
@@ -309,14 +309,6 @@ exports["locale: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 localeuage" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/de'), 'de', "module should export de");
-        }
-
         test.done();
     }
 };
index 3de17e6b8f4e3683bd4354cd5fed5bc1551ec0e0..84a4228c1dce71bc21c2ad16766234905c19a7f1 100644 (file)
@@ -338,14 +338,6 @@ exports["locale: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 localeuage" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/el'), 'el', "module should export el");
-        }
-
         test.done();
     }
 };
index 790cdf99c378d157db59177ebb57de305e0aca00..7601ab46d56361a1d8a8d8753f3face0517db716 100644 (file)
@@ -315,14 +315,6 @@ exports["locale:en-au"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/en-au'), 'en-au', "module should export en-au");
-        }
-
         test.done();
     }
 };
index 090a738c74ce3d32f095cb9f81598464907b0eb6..8bb5bc5c285d513b90f5b1d34a6c0e9d8258791a 100644 (file)
@@ -332,14 +332,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/en-ca'), 'en-ca', "module should export en-ca");
-        }
-
         test.done();
     }
 };
index 8226600e120ef6dae8fd01526113c2d201047ca1..9476e3b6417b5fa62663368e4829504bd8d6d407 100644 (file)
@@ -315,14 +315,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/en-gb'), 'en-gb', "module should export en-gb");
-        }
-
         test.done();
     }
 };
index 8c30bc21efacc5b355c74771560630f931a39a08..378fb2e184e27eacfec061a61b903be91220b76b 100644 (file)
@@ -316,14 +316,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/eo'), 'eo', "module should export eo");
-        }
-
         test.done();
     }
 };
index 6d405b15df4de4e9a7b7bb47c676d4f5c7026466..909ded4dcfd264d1d6029c1721070f1253a9bd49 100644 (file)
@@ -318,14 +318,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/es'), 'es', "module should export es");
-        }
-
         test.done();
     }
 };
index 39be05f9154c3f8ffb4f58143e93f5ed26c6dea5..a2b315da312e2719dfc191a2f4a02ae070f708d4 100644 (file)
@@ -338,14 +338,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/et'), 'et', "module should export et");
-        }
-
         test.done();
     }
 };
index fa178bd51ca695423d5cc2d97f1acb4bf2993a25..0a5f280c4a7bcb32a5441b910e736e5143251ce7 100644 (file)
@@ -313,14 +313,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/eu'), 'eu', "module should export eu");
-        }
-
         test.done();
     }
 };
index eada0124efb9562f425adb7fce3337182e36a931..3695de3080af1c9a3f14c2a937dfa3c67ea4ae09 100644 (file)
@@ -302,14 +302,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/fa'), 'fa', "module should export fa");
-        }
-
         test.done();
     }
 };
index 38c656104b8d8bd0f86f0256eeb7e11dda4056f3..e9389413925681839c716c86efc9805162dd7406 100644 (file)
@@ -314,14 +314,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/fi'), 'fi', "module should export fi");
-        }
-
         test.done();
     }
 };
index c7acb071828866ac6351fd81a6b4ace1a130ef24..4a825dc9ee0b6a680ad1e78e02c83aa555b8adbb 100644 (file)
@@ -260,14 +260,6 @@ exports["locale:fo"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/fo'), 'fo', "module should export fo");
-        }
-
         test.done();
     }
 };
index be0b1086a814f6769657fbba089c5139470c5d1e..938e46a7882fb2277e4e901349b3de0a22f821f0 100644 (file)
@@ -327,14 +327,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/fr-ca'), 'fr-ca', "module should export fr-ca");
-        }
-
         test.done();
     }
 };
index e4e14f5a1618291d14dc26879c20e9a3ac6f05ce..ed7aaa0e8d58b0f94085d6dc6ec42f1469a22ec9 100644 (file)
@@ -311,14 +311,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/fr'), 'fr', "module should export fr");
-        }
-
         test.done();
     }
 };
index a387e095ca08771d3cfca9e73f479df2d444988e..04656d7eece20b63356152e6e666032b9a279e97 100644 (file)
@@ -291,14 +291,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/gl'), 'gl', "module should export gl");
-        }
-
         test.done();
     }
 };
index e566ec3f68f8a73984b4d3ea6d5dc0beb19f718a..f2780485eda049700b1fea64bdc8342680c9a509 100644 (file)
@@ -276,14 +276,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/he'), 'he', "module should export he");
-        }
-
         test.done();
     }
 };
index 2f18b87046a62ecd9a4a783e66e823978a9ef739..f349a1d98f4af54f89971d90a0cec1c91ac49e54 100644 (file)
@@ -332,14 +332,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/hi'), 'hi', "module should export hi");
-        }
-
         test.done();
     }
 };
index 6ee0e903325f89c3c601ac1ce4033bb4bbef5aa6..b376c6b18158b13b8a6b0207ebeff9f765a23925 100644 (file)
@@ -347,14 +347,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/hr'), 'hr', "module should export hr");
-        }
-
         test.done();
     }
 };
index 68790687a25c2f6579170aa4d66f3208607700a7..a00366fe4553a65f27c5898339e2b2e61d9631e5 100644 (file)
@@ -330,14 +330,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/hu'), 'hu', "module should export hu");
-        }
-
         test.done();
     }
 };
index 2b2ec53871cfda9166741dce5bc0f6fc19b21012..fd4392432846fa4a08e9656c2105f0eb368f8194 100644 (file)
@@ -390,14 +390,6 @@ exports["locale:hy-am"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/hy-am'), 'hy-am', "module should export hy");
-        }
-
         test.done();
     }
 
index dc2154ecc6121acb926618c93027201af9f4ab6e..1d5b7b4c30576bcac449cc96fd27d8a350ada238 100644 (file)
@@ -275,14 +275,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/id'), 'id', "module should export id");
-        }
-
         test.done();
     }
 };
index 206f775d8b28c6b3662471f404c9966d6652d40d..8532e9d61707e5c8db685d3208fb758824c877a4 100644 (file)
@@ -321,14 +321,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/is'), 'is', "module should export is");
-        }
-
         test.done();
     }
 };
index 32731c5305f4bb56a7dafc7e5aa437ef73dd6292..d3a715024719d28686c1f828383ff99d1960926c 100644 (file)
@@ -308,14 +308,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/it'), 'it', "module should export it");
-        }
-
         test.done();
     }
 };
index 11dc390fb792be61e414a996d9a1a105a78de74b..125730f19bbe1005a39eee3dfd39d13946573f18 100644 (file)
@@ -275,14 +275,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ja'), 'ja', "module should export ja");
-        }
-
         test.done();
     }
 };
index 5248d35a7447b5aa74a0747272abd911c69a10f9..732a918333dd65ee012c66926d0f9192de216c87 100644 (file)
@@ -331,14 +331,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ka'), 'ka', "module should export ka");
-        }
-
         test.done();
     }
 };
index 45c41b2faba39da6acc0b9840c615b17f3d2b348..8bae123f653f29421f7f4abe6e87f08371b549f6 100644 (file)
@@ -342,14 +342,6 @@ exports["locale:km"] = {
         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 locale": function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/km'), 'km', "module should export km");
-        }
-
         test.done();
     }
 };
index 00bae77e89639f5e9dffb71bc61fddfcc74ff904..4025b0f1a3d61249ea9990871464b8f65e67e7f5 100644 (file)
@@ -355,14 +355,6 @@ exports["locale:ko"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ko'), 'ko', "module should export ko");
-        }
-
         test.done();
     }
 };
index c2b7a039f88f723e8f4b4bcde4f820495a6e59e5..179e45e916c641b7a498bb859bcb19892dd5e88d 100644 (file)
@@ -159,14 +159,6 @@ exports["locale:lb"] = {
             m.hours(23).minutes(59).seconds(59).milliseconds(999);
             test.equal(m.calendar(), m.format(datestring), "Today + " + i + " days end of day");
         }
-        test.done();
-    },
-
-    "returns the name of the locale": function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/lb'), 'lb', "module should export lb");
-        }
-
         test.done();
     }
 };
index 157979c7b8de5d6df2fea1a3ccac4f69c8adedb0..42d8416bc23231a3cff81dc8cca0c33dd49a203c 100644 (file)
@@ -331,14 +331,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/lt'), 'lt', "module should export lt");
-        }
-
         test.done();
     }
 
index b381893d553bbe3445a050967305187652165fd8..c9c6a00e33c58c6364e2a137a07618b5e82e3c0b 100644 (file)
@@ -313,14 +313,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/lv'), 'lv', "module should export lv");
-        }
-
         test.done();
     }
 };
index f818a36f9c15492e7ede4b25c9358c4404a9d4e8..c8ca218be41f557a4acbb019e95a85093119ac43 100644 (file)
@@ -328,14 +328,6 @@ exports["locale:mk"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/mk'), 'mk', "module should export mk");
-        }
-
         test.done();
     }
 };
index 5e8c7a94dd7bede58149b473c99d91d97f698344..724d76ed115ea3efb1b558aa02171b7ef5493b6c 100644 (file)
@@ -332,14 +332,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ml'), 'ml', "module should export ml");
-        }
-
         test.done();
     }
 };
index 467802307fb32754f62600bfbd95029075380840..5fd7041f562584e81cce65c551f46272fbe290f7 100644 (file)
@@ -332,14 +332,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/mr'), 'mr', "module should export mr");
-        }
-
         test.done();
     }
 };
index ae39417289ec6ee1c270ac58efd4154d11a0ed32..c0aa20f260360f79102b60ee5dd9b78d20ede10c 100644 (file)
@@ -331,14 +331,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ms-my'), 'ms-my', "module should export ms-my");
-        }
-
         test.done();
     }
 };
index 1aefcf7b50a5f3637ee5add67ee2c9be0a0d35e5..12ae3ff8f08541c861c3f61bdac942ae9d4d2d29 100644 (file)
@@ -314,14 +314,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/nb'), 'nb', "module should export nb");
-        }
-
         test.done();
     }
 };
index 7f0227f8df9eb3562f13eb8e34e4589f050b790e..003a3a76840a0b176801ce642cd3c51a7d706d66 100644 (file)
@@ -331,14 +331,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ne'), 'ne', "module should export ne");
-        }
-
         test.done();
     }
 };
index 0df21c97fd7c712dfdd9230045cbe1e4a450a25b..5a002133ad393a633058d1ffcff57d42637ecf6e 100644 (file)
@@ -321,14 +321,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/nl'), 'nl', "module should export nl");
-        }
-
         test.done();
     }
 };
index a9807dedf8925333228c0eb19e31c9a4dd3de96c..8576dba3550d0f71db425ad943a3951a9edc9cf9 100644 (file)
@@ -313,14 +313,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/nn'), 'nn', "module should export nn");
-        }
-
         test.done();
     }
 };
index 99b7a640c9b6c98d0f1ee7b539670285a791d75d..749f3d9aa5e00623bf13630bc5ebfe71d9fbe029 100644 (file)
@@ -335,14 +335,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/pl'), 'pl', "module should export pl");
-        }
-
         test.done();
     }
 };
index 82215e67d4b563aaa4c62e1f04e21f0f89739927..302069a54af6cc357bcc59ab9178b40b9e1df067 100644 (file)
@@ -312,14 +312,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/pt-br'), 'pt-br', "module should export pt-br");
-        }
-
         test.done();
     }
 };
index 5c87c8e6671ae3c34bc4a82a6feae62a05d77655..0d6bd8585a82fe096f7b48db442d852bcb40d8a4 100644 (file)
@@ -309,14 +309,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/pt'), 'pt', "module should export pt");
-        }
-
         test.done();
     }
 };
index 9f3b4f2425173128ceb9af70549d03f0fa9ea58c..3165aa32413ae6eebbf0c02f9710e0fc54b06a6b 100644 (file)
@@ -322,14 +322,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ro'), 'ro', "module should export ro");
-        }
-
         test.done();
     }
 };
index 8c060e2e730747cf7a5f36e472a600ff8fda3550..eb6ecdf5766f00fd189af56a759e4bab5dcc97d3 100644 (file)
@@ -404,14 +404,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ru'), 'ru', "module should export ru");
-        }
-
         test.done();
     }
 };
index a530f179f654965ccb38213d83208bb67b5e5e23..09c89d9ca06a7295591c817a2235d28f2f6073ad 100644 (file)
@@ -403,14 +403,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sk'), 'sk', "module should export sk");
-        }
-
         test.done();
     }
 };
index 0b0020820db0565ee12dda9bc9354bc61eba1209..e971f2a51684ac55849074fa61b8139f8fcd55e0 100644 (file)
@@ -346,14 +346,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sl'), 'sl', "module should export sl");
-        }
-
         test.done();
     }
 };
index c9966eb1ef3abec6ea7833ce1286b88c1210eedb..37829c42f73b6969aed2637bd825d129041fa592 100644 (file)
@@ -339,14 +339,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sq'), 'sq', "module should export sq");
-        }
-
         test.done();
     }
 };
index e24a838f6874000f89c80587ddc39cdbad5e71dc..d4ba40a0c138d3d5073356841a60338addf4a128 100644 (file)
@@ -349,14 +349,6 @@ exports["locale:sr-cyrl"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sr-cyrl'), 'sr-cyrl', "module should export sr-cyrl");
-        }
-
         test.done();
     }
 };
index b272e5154fc118777b76225caff7fd8839c31dae..e22d3bc550c3e5dd6f042d6afa4e13ea7cc7931b 100644 (file)
@@ -349,14 +349,6 @@ exports["locale:sr"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sr'), 'sr', "module should export sr");
-        }
-
         test.done();
     }
 };
index 24d452f377957d0bb6fabfcc6260f4e8fa2e5bf7..98deea98ecc36e4e928c3c06242784a67135eaed 100644 (file)
@@ -313,14 +313,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/sv'), 'sv', "module should export sv");
-        }
-
         test.done();
     }
 };
index ad59bdb4d9d2f7a11b4edd45f972de8e296d4f64..e5779cd2434607fc9cb993acd891d70621cadf04 100644 (file)
@@ -318,14 +318,6 @@ exports["locale:ta"] = {
         test.equal(moment([2011, 2, 23, 17, 30]).format('a'), " எற்பாடு", "evening");
         test.equal(moment([2011, 2, 23, 19, 30]).format('a'), " மாலை", "late evening");
         test.equal(moment([2011, 2, 23, 21, 20]).format('a'), " இரவு", "night");
-        test.done();
-    },
-
-    "returns the name of the locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/ta'), 'ta', "module should export ta");
-        }
-
         test.done();
     }
 };
index 596dbe7f1bc70c916daa8dc76f2fe5f7ede8ccec..a46ccd071f31126fe5dfac4920848075aac14c47 100644 (file)
@@ -275,14 +275,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/th'), 'th', "module should export th");
-        }
-
         test.done();
     }
 };
index f8280dc0bb4ffe726043556f3c889f85948c9c97..19d436e7a8095b19722855a927cc59fe50641e50 100644 (file)
@@ -311,14 +311,6 @@ exports["locale:tl-ph"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/tl-ph'), 'tl-ph', "module should export tl-ph");
-        }
-
         test.done();
     }
 };
index d36d38d1668626620cb73fe15ea34f4a50192aa2..ee5a5a94bbac738b24333ff8706d7c79ecf2ad7f 100644 (file)
@@ -325,14 +325,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/tr'), 'tr', "module should export tr");
-        }
-
         test.done();
     }
 };
index 1d2be0d338eb478c530f934ed4c71c6bcc71a2f2..5cf9f4b0f4b31ae2e5ba52d627cc43f30311445c 100644 (file)
@@ -310,14 +310,6 @@ exports["locale:tzm-latn"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/tzm-latn'), 'tzm-latn', "module should export tzm-latn");
-        }
-
         test.done();
     }
 };
index 2bc67a6758f48fbecb92eacc5183bbdc0299d60a..c46b81d8bdb4f578166d1f05b4a76eeede6f4574 100644 (file)
@@ -310,13 +310,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/tzm'), 'tzm', "module should export tzm");
-        }
         test.done();
     }
 };
index 45c12b4ef9fcc1c7f9bc4aad4e332450b69258ed..e0b0255a560a8b63d0f506665e48e3f67c05ceb4 100644 (file)
@@ -348,14 +348,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/uk'), 'uk', "module should export uk");
-        }
-
         test.done();
     }
 };
index acece2d45417fbb9fdb5c1cb1710cfd8f316eb93..3b150dd4e6479ec1dc5df4c1e19087502d94801f 100644 (file)
@@ -315,14 +315,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/uz'), 'uz', "module should export uz");
-        }
-
         test.done();
     }
 };
index f1d531b6fd5e3268360d667135ec599907ce7b9c..921d0c98979f06a40062cbc2eb197c8495d63a51 100644 (file)
@@ -333,14 +333,6 @@ exports["locale:vi"] = {
         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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/vi'), 'vi', "module should export vi");
-        }
-
         test.done();
     }
 };
index 3edfe3d87fa16eec5aa78ecdb665b29067d1f94a..7f1dc425c5fc65d52ebe5abfd33c6fec30d204c8 100644 (file)
@@ -307,14 +307,6 @@ exports["locale:zh-cn"] = {
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1周', "Jan  7 2012 应该是第 1周");
         test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2周', "Jan 14 2012 应该是第 2周");
 
-        test.done();
-    },
-
-    "returns the name of the locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/zh-cn'), 'zh-cn', "module should export zh-cn");
-        }
-
         test.done();
     }
 };
index fb65c35ab5e5d94ed15e58690fb63f1199a393e3..5363a45a2aee185d5ea630ae0c7aa131e179de0b 100644 (file)
@@ -305,14 +305,6 @@ exports["locale: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 locale" : function (test) {
-        if (typeof module !== 'undefined' && module.exports) {
-            test.equal(require('../../locale/zh-tw'), 'zh-tw', "module should export zh-tw");
-        }
-
         test.done();
     }
 };