From: Isaac Cambron Date: Mon, 30 Sep 2013 23:12:07 +0000 (-0400) Subject: make bosnian consistent with change to language boilerplate X-Git-Tag: 2.3.0~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1149%2Fhead;p=thirdparty%2Fmoment.git make bosnian consistent with change to language boilerplate --- diff --git a/lang/bs.js b/lang/bs.js index d1583c797..83a9b4c07 100644 --- a/lang/bs.js +++ b/lang/bs.js @@ -7,7 +7,7 @@ if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { - factory(require('../moment')); // Node + module.exports = factory(require('../moment')); // Node } else { factory(window.moment); // Browser global } @@ -66,7 +66,7 @@ } } - moment.lang('bs', { + return moment.lang('bs', { months : "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"), monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), diff --git a/test/lang/bs.js b/test/lang/bs.js index baebb8b4c..4093e597a 100644 --- a/test/lang/bs.js +++ b/test/lang/bs.js @@ -380,6 +380,14 @@ exports["lang: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 language" : function (test) { + test.expect(1); + + test.equal(require('../../lang/bs'), 'bs', "module should export bs"); + test.done(); } };