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
}
}
}
- 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("_"),
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();
}
};