]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Merge branch 'develop' of github.com:zenozeng/moment into zenozeng-develop
authorIskren Chernev <iskren.chernev@gmail.com>
Sun, 13 Oct 2013 08:48:39 +0000 (01:48 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 13 Oct 2013 08:48:39 +0000 (01:48 -0700)
Conflicts:
lang/zh-cn.js

1  2 
lang/zh-cn.js
test/lang/zh-cn.js

diff --cc lang/zh-cn.js
Simple merge
index e7f77963a501739ad469e81c25249d190fa6287c,a9823f5457cb3817076efb66b8a66bd117f00e22..a15694fbfe0ec26e99b6230a413bb2732df752a5
@@@ -337,22 -335,12 +335,20 @@@ exports["lang:zh-cn"] = 
      },
  
      "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();
      }
  };