From: Marius Gundersen Date: Mon, 30 Sep 2013 12:38:20 +0000 (+0200) Subject: Added test for module return value X-Git-Tag: 2.3.0~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=552b50a2b93d3d78b9417928f4fa485abbc0508f;p=thirdparty%2Fmoment.git Added test for module return value --- diff --git a/test/lang/ar-ma.js b/test/lang/ar-ma.js index f03e76d99..7cd2c34d4 100644 --- a/test/lang/ar-ma.js +++ b/test/lang/ar-ma.js @@ -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(); } }; diff --git a/test/lang/ar.js b/test/lang/ar.js index f3cf21afd..feed0d7e8 100644 --- a/test/lang/ar.js +++ b/test/lang/ar.js @@ -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(); } }; diff --git a/test/lang/bg.js b/test/lang/bg.js index 5d47888e1..616a68b38 100644 --- a/test/lang/bg.js +++ b/test/lang/bg.js @@ -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(); } }; diff --git a/test/lang/br.js b/test/lang/br.js index 25c775990..5195136fd 100644 --- a/test/lang/br.js +++ b/test/lang/br.js @@ -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(); } }; diff --git a/test/lang/ca.js b/test/lang/ca.js index c8b231c35..3c3934ff1 100644 --- a/test/lang/ca.js +++ b/test/lang/ca.js @@ -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(); } }; diff --git a/test/lang/cs.js b/test/lang/cs.js index 47ee80328..8250d6c71 100644 --- a/test/lang/cs.js +++ b/test/lang/cs.js @@ -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(); } }; diff --git a/test/lang/cv.js b/test/lang/cv.js index 054d70d25..271e1c499 100644 --- a/test/lang/cv.js +++ b/test/lang/cv.js @@ -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(); } }; diff --git a/test/lang/da.js b/test/lang/da.js index cf8447cda..3204cbcb1 100644 --- a/test/lang/da.js +++ b/test/lang/da.js @@ -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(); } }; diff --git a/test/lang/de.js b/test/lang/de.js index c93480e26..ed20f5a63 100644 --- a/test/lang/de.js +++ b/test/lang/de.js @@ -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(); } }; diff --git a/test/lang/el.js b/test/lang/el.js index 54bb27740..7d7db4462 100644 --- a/test/lang/el.js +++ b/test/lang/el.js @@ -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(); } }; diff --git a/test/lang/en-ca.js b/test/lang/en-ca.js index 864daf2f9..d03518642 100644 --- a/test/lang/en-ca.js +++ b/test/lang/en-ca.js @@ -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(); } }; diff --git a/test/lang/en-gb.js b/test/lang/en-gb.js index f2340310e..01485d153 100644 --- a/test/lang/en-gb.js +++ b/test/lang/en-gb.js @@ -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(); } }; diff --git a/test/lang/eo.js b/test/lang/eo.js index 0b645b5f4..46f757114 100644 --- a/test/lang/eo.js +++ b/test/lang/eo.js @@ -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(); } }; diff --git a/test/lang/es.js b/test/lang/es.js index 99c1e8efe..e2b7799d3 100644 --- a/test/lang/es.js +++ b/test/lang/es.js @@ -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(); } }; diff --git a/test/lang/et.js b/test/lang/et.js index f542cd813..76f55540f 100644 --- a/test/lang/et.js +++ b/test/lang/et.js @@ -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(); } }; diff --git a/test/lang/eu.js b/test/lang/eu.js index 87bd9596e..d8f9b6b1b 100644 --- a/test/lang/eu.js +++ b/test/lang/eu.js @@ -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(); } }; diff --git a/test/lang/fa.js b/test/lang/fa.js index 7c7f28d93..4c20792fd 100644 --- a/test/lang/fa.js +++ b/test/lang/fa.js @@ -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(); } }; diff --git a/test/lang/fi.js b/test/lang/fi.js index 62b2e5630..02eda4859 100644 --- a/test/lang/fi.js +++ b/test/lang/fi.js @@ -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(); } }; diff --git a/test/lang/fr-ca.js b/test/lang/fr-ca.js index 56dc15d13..fccceaa0e 100644 --- a/test/lang/fr-ca.js +++ b/test/lang/fr-ca.js @@ -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(); } }; diff --git a/test/lang/fr.js b/test/lang/fr.js index 46d537284..016a207f3 100644 --- a/test/lang/fr.js +++ b/test/lang/fr.js @@ -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(); } }; diff --git a/test/lang/gl.js b/test/lang/gl.js index 05049ace1..20e8db3f7 100644 --- a/test/lang/gl.js +++ b/test/lang/gl.js @@ -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(); } }; diff --git a/test/lang/he.js b/test/lang/he.js index 140d85628..26984090e 100644 --- a/test/lang/he.js +++ b/test/lang/he.js @@ -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(); } }; diff --git a/test/lang/hi.js b/test/lang/hi.js index 0e98b41fc..392f422dd 100644 --- a/test/lang/hi.js +++ b/test/lang/hi.js @@ -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(); } }; diff --git a/test/lang/hr.js b/test/lang/hr.js index b32b26434..08bab6d86 100644 --- a/test/lang/hr.js +++ b/test/lang/hr.js @@ -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(); } }; diff --git a/test/lang/hu.js b/test/lang/hu.js index 70382fb31..3b3fe008f 100644 --- a/test/lang/hu.js +++ b/test/lang/hu.js @@ -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(); } }; diff --git a/test/lang/id.js b/test/lang/id.js index 6f4f5d30a..f8a23cabf 100644 --- a/test/lang/id.js +++ b/test/lang/id.js @@ -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(); } }; diff --git a/test/lang/is.js b/test/lang/is.js index 0f0f74b64..962ed5e69 100644 --- a/test/lang/is.js +++ b/test/lang/is.js @@ -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(); } }; diff --git a/test/lang/it.js b/test/lang/it.js index b5ed74a0f..de964def4 100644 --- a/test/lang/it.js +++ b/test/lang/it.js @@ -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(); } }; diff --git a/test/lang/ja.js b/test/lang/ja.js index 148f677ae..794de0e9e 100644 --- a/test/lang/ja.js +++ b/test/lang/ja.js @@ -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(); } }; diff --git a/test/lang/ka.js b/test/lang/ka.js index 0250eea6d..fc2eedafe 100644 --- a/test/lang/ka.js +++ b/test/lang/ka.js @@ -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(); } }; diff --git a/test/lang/ko.js b/test/lang/ko.js index 5d0310e41..911b584a2 100644 --- a/test/lang/ko.js +++ b/test/lang/ko.js @@ -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(); } }; diff --git a/test/lang/lt.js b/test/lang/lt.js index cf91b78a8..f6a4cc9cf 100644 --- a/test/lang/lt.js +++ b/test/lang/lt.js @@ -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(); } }; diff --git a/test/lang/lv.js b/test/lang/lv.js index 5b5c23c4e..4c7e6d2ff 100644 --- a/test/lang/lv.js +++ b/test/lang/lv.js @@ -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(); } }; diff --git a/test/lang/ml.js b/test/lang/ml.js index c0637f52d..fd1e21aa8 100644 --- a/test/lang/ml.js +++ b/test/lang/ml.js @@ -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(); } }; diff --git a/test/lang/mr.js b/test/lang/mr.js index ee6767c50..f2877ca7a 100644 --- a/test/lang/mr.js +++ b/test/lang/mr.js @@ -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(); } }; diff --git a/test/lang/ms-my.js b/test/lang/ms-my.js index 24bc36632..e494a16b9 100644 --- a/test/lang/ms-my.js +++ b/test/lang/ms-my.js @@ -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(); } }; diff --git a/test/lang/nb.js b/test/lang/nb.js index c8f2c3c90..42ccabd4a 100644 --- a/test/lang/nb.js +++ b/test/lang/nb.js @@ -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(); } }; diff --git a/test/lang/ne.js b/test/lang/ne.js index a008382f2..6ecca8c5c 100644 --- a/test/lang/ne.js +++ b/test/lang/ne.js @@ -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(); } }; diff --git a/test/lang/nl.js b/test/lang/nl.js index cb4eb65c2..e50fce149 100644 --- a/test/lang/nl.js +++ b/test/lang/nl.js @@ -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(); } }; diff --git a/test/lang/nn.js b/test/lang/nn.js index 28105851a..70352ae93 100644 --- a/test/lang/nn.js +++ b/test/lang/nn.js @@ -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(); } }; diff --git a/test/lang/pl.js b/test/lang/pl.js index cb8c1beee..33731eb71 100644 --- a/test/lang/pl.js +++ b/test/lang/pl.js @@ -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(); } }; diff --git a/test/lang/pt-br.js b/test/lang/pt-br.js index 4e2e1395d..84577b21e 100644 --- a/test/lang/pt-br.js +++ b/test/lang/pt-br.js @@ -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(); } }; diff --git a/test/lang/pt.js b/test/lang/pt.js index 3cf62a07d..6fe3b0226 100644 --- a/test/lang/pt.js +++ b/test/lang/pt.js @@ -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(); } }; diff --git a/test/lang/ro.js b/test/lang/ro.js index 2e0080c45..5ed1ef839 100644 --- a/test/lang/ro.js +++ b/test/lang/ro.js @@ -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(); } }; diff --git a/test/lang/ru.js b/test/lang/ru.js index 457e38d26..81576d5e8 100644 --- a/test/lang/ru.js +++ b/test/lang/ru.js @@ -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(); } }; diff --git a/test/lang/sk.js b/test/lang/sk.js index 690ffcf2b..bbd207758 100644 --- a/test/lang/sk.js +++ b/test/lang/sk.js @@ -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(); } }; diff --git a/test/lang/sl.js b/test/lang/sl.js index 69259987a..98b13bc73 100644 --- a/test/lang/sl.js +++ b/test/lang/sl.js @@ -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(); } }; diff --git a/test/lang/sq.js b/test/lang/sq.js index f997b3ee0..da818f152 100644 --- a/test/lang/sq.js +++ b/test/lang/sq.js @@ -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(); } }; diff --git a/test/lang/sv.js b/test/lang/sv.js index 0df34c4eb..995dc73ea 100644 --- a/test/lang/sv.js +++ b/test/lang/sv.js @@ -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(); } }; diff --git a/test/lang/th.js b/test/lang/th.js index bd835e079..d826ca8d6 100644 --- a/test/lang/th.js +++ b/test/lang/th.js @@ -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(); } }; diff --git a/test/lang/tr.js b/test/lang/tr.js index b491daaa1..88a55158a 100644 --- a/test/lang/tr.js +++ b/test/lang/tr.js @@ -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(); } }; diff --git a/test/lang/tzm-la.js b/test/lang/tzm-la.js index 758fe6dcb..d1cd8683f 100644 --- a/test/lang/tzm-la.js +++ b/test/lang/tzm-la.js @@ -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(); } }; diff --git a/test/lang/tzm.js b/test/lang/tzm.js index 11b9bb86a..717206318 100644 --- a/test/lang/tzm.js +++ b/test/lang/tzm.js @@ -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(); } }; diff --git a/test/lang/uk.js b/test/lang/uk.js index 1f9c499f0..33645ac7e 100644 --- a/test/lang/uk.js +++ b/test/lang/uk.js @@ -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(); } }; diff --git a/test/lang/uz.js b/test/lang/uz.js index bd3097a96..42c2f6393 100644 --- a/test/lang/uz.js +++ b/test/lang/uz.js @@ -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(); } }; diff --git a/test/lang/vn.js b/test/lang/vn.js index 520a13924..43c032f87 100644 --- a/test/lang/vn.js +++ b/test/lang/vn.js @@ -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(); } }; diff --git a/test/lang/zh-cn.js b/test/lang/zh-cn.js index 1a0b9f77a..8cafe8e64 100644 --- a/test/lang/zh-cn.js +++ b/test/lang/zh-cn.js @@ -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(); } }; diff --git a/test/lang/zh-tw.js b/test/lang/zh-tw.js index 7e94f98e2..eccdd867c 100644 --- a/test/lang/zh-tw.js +++ b/test/lang/zh-tw.js @@ -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(); } };