Skip to content

Commit

Permalink
Merge pull request #1177 from icambron/language-test-module-check
Browse files Browse the repository at this point in the history
repairing language tests
  • Loading branch information
ichernev committed Oct 13, 2013
2 parents 6a31f2d + 155920d commit bbf9412
Show file tree
Hide file tree
Showing 60 changed files with 185 additions and 187 deletions.
9 changes: 4 additions & 5 deletions test/lang/ar-ma.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,11 @@ exports["lang:ar-ma"] = {

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");

if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/ar-ma'), 'ar-ma', "module should export ar-ma");
}
test.done();
}
};
9 changes: 4 additions & 5 deletions test/lang/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,11 @@ exports["lang:ar"] = {

test.done();
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/ar'), 'ar', "module should export ar");

if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/ar'), 'ar', "module should export ar");
}
test.done();
}
};
6 changes: 3 additions & 3 deletions test/lang/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ exports["lang:bg"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/bg'), 'bg', "module should export bg");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/bg'), 'bg', "module should export bg");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/br.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ exports["lang:br"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/br'), 'br', "module should export br");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/br'), 'br', "module should export br");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/bs.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ exports["lang:bs"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/bs'), 'bs', "module should export bs");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/bs'), 'bs', "module should export bs");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ exports["lang:ca"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/ca'), 'ca', "module should export ca");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/ca'), 'ca', "module should export ca");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ exports["lang:cs"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/cs'), 'cs', "module should export cs");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/cs'), 'cs', "module should export cs");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/cv.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ exports["lang:cv"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/cv'), 'cv', "module should export cv");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/cv'), 'cv', "module should export cv");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ exports["lang:da"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/da'), 'da', "module should export da");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/da'), 'da', "module should export da");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ exports["lang:de"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/de'), 'de', "module should export de");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/de'), 'de', "module should export de");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ exports["lang:el"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/el'), 'el', "module should export el");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/el'), 'el', "module should export el");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/en-au.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ exports["lang:en-au"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/en-au'), 'en-au', "module should export en-au");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/en-au'), 'en-au', "module should export en-au");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/en-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ exports["lang:en-ca"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/en-ca'), 'en-ca', "module should export en-ca");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/en-ca'), 'en-ca', "module should export en-ca");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ exports["lang:en-gb"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/en-gb'), 'en-gb', "module should export en-gb");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/en-gb'), 'en-gb', "module should export en-gb");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/eo.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ exports["lang:eo"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/eo'), 'eo', "module should export eo");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/eo'), 'eo', "module should export eo");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ exports["lang:es"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/es'), 'es', "module should export es");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/es'), 'es', "module should export es");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/et.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ exports["lang:et"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/et'), 'et', "module should export et");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/et'), 'et', "module should export et");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/eu.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ exports["lang:eu"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/eu'), 'eu', "module should export eu");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/eu'), 'eu', "module should export eu");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ exports["lang:fa"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/fa'), 'fa', "module should export fa");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/fa'), 'fa', "module should export fa");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ exports["lang:fi"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/fi'), 'fi', "module should export fi");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/fi'), 'fi', "module should export fi");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/fr-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ exports["lang:fr-ca"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/fr-ca'), 'fr-ca', "module should export fr-ca");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/fr-ca'), 'fr-ca', "module should export fr-ca");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ exports["lang:fr"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/fr'), 'fr', "module should export fr");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/fr'), 'fr', "module should export fr");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ exports["lang:gl"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/gl'), 'gl', "module should export gl");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/gl'), 'gl', "module should export gl");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/he.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ exports["lang:he"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/he'), 'he', "module should export he");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/he'), 'he', "module should export he");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/hi.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ exports["lang:hi"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/hi'), 'hi', "module should export hi");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/hi'), 'hi', "module should export hi");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/hr.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ exports["lang:hr"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/hr'), 'hr', "module should export hr");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/hr'), 'hr', "module should export hr");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ exports["lang:hu"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/hu'), 'hu', "module should export hu");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/hu'), 'hu', "module should export hu");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ exports["lang:id"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/id'), 'id', "module should export id");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/id'), 'id', "module should export id");
}

test.done();
}
Expand Down
5 changes: 3 additions & 2 deletions test/lang/is.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@ exports["lang:is"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);
if (typeof module !== 'undefined' && module.exports) {

test.equal(require('../../lang/is'), 'is', "module should export is");
test.equal(require('../../lang/is'), 'is', "module should export is");
}

test.done();
}
Expand Down
6 changes: 3 additions & 3 deletions test/lang/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ exports["lang:it"] = {
},

"returns the name of the language" : function (test) {
test.expect(1);

test.equal(require('../../lang/it'), 'it', "module should export it");
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/it'), 'it', "module should export it");
}

test.done();
}
Expand Down
Loading

0 comments on commit bbf9412

Please sign in to comment.