},
"weeks year starting sunday format" : function (test) {
- test.expect(5);
+ test.expect(3);
- test.equal(moment([2012, 0, 1]).format('w ww wo'), '1 01 1周', "Jan 1 2012 应该是第 1周");
+ test.equal(moment([2012, 0, 1]).format('w ww wo'), '52 52 52周', "Jan 1 2012 应该是第52周");
test.equal(moment([2012, 0, 7]).format('w ww wo'), '1 01 1周', "Jan 7 2012 应该是第 1周");
- test.equal(moment([2012, 0, 8]).format('w ww wo'), '2 02 2周', "Jan 8 2012 应该是第 2周");
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) {
+ if (typeof module !== 'undefined' && module.exports) {
+ test.equal(require('../../lang/zh-cn'), 'zh-cn', "module should export zh-cn");
+ }
+
test.done();
}
};