From: Zeno Zeng Date: Sun, 27 Oct 2013 02:54:13 +0000 (+0800) Subject: update test/lang/zh-cn.js, skip next week test if target is tomorrow X-Git-Tag: 2.5.0^2~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1224%2Fhead;p=thirdparty%2Fmoment.git update test/lang/zh-cn.js, skip next week test if target is tomorrow --- diff --git a/test/lang/zh-cn.js b/test/lang/zh-cn.js index bd3a0b988..572da290e 100644 --- a/test/lang/zh-cn.js +++ b/test/lang/zh-cn.js @@ -201,6 +201,9 @@ exports["lang:zh-cn"] = { if (Math.abs(m.diff(today, 'days')) >= 7) { continue; } + if (Math.abs(m.diff(today, 'days')) <= 1) { + continue; // skip today, yesterday, tomorrow + } test.equal(m.calendar(), m.format('[下]ddd凌晨12点整'), "Today + " + i + " days beginning of day"); } test.done();