]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
make bosnian consistent with change to language boilerplate 1149/head
authorIsaac Cambron <isaac@isaaccambron.com>
Mon, 30 Sep 2013 23:12:07 +0000 (19:12 -0400)
committerIsaac Cambron <isaac@isaaccambron.com>
Mon, 30 Sep 2013 23:12:07 +0000 (19:12 -0400)
lang/bs.js
test/lang/bs.js

index d1583c797ae616d73abb754edcf62ffe733dfe97..83a9b4c0736dc9aef70ffa1e6578d66ec8292c66 100644 (file)
@@ -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("_"),
index baebb8b4cdcfcd3148cfdda531f58c7e0ba1797f..4093e597a2cc5eb6b2f051972e46ad59fc57cf6b 100644 (file)
@@ -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();
     }
 };