From: Andreas Niedermair Date: Thu, 10 Apr 2014 08:23:56 +0000 (+0200) Subject: fixes #1601 X-Git-Tag: 2.6.0~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb073f352cdb846c22b50ec5cee3a4d4cf5284c2;p=thirdparty%2Fmoment.git fixes #1601 --- diff --git a/test/lang/de.js b/test/lang/de.js index 1a4cc4397..a478186b7 100644 --- a/test/lang/de.js +++ b/test/lang/de.js @@ -190,12 +190,12 @@ exports["lang:de"] = { var a = moment().hours(2).minutes(0).seconds(0); - test.equal(moment(a).calendar(), "Heute um 2:00 Uhr", "today at the same time"); - test.equal(moment(a).add({ m: 25 }).calendar(), "Heute um 2:25 Uhr", "Now plus 25 min"); - test.equal(moment(a).add({ h: 1 }).calendar(), "Heute um 3:00 Uhr", "Now plus 1 hour"); - test.equal(moment(a).add({ d: 1 }).calendar(), "Morgen um 2:00 Uhr", "tomorrow at the same time"); - test.equal(moment(a).subtract({ h: 1 }).calendar(), "Heute um 1:00 Uhr", "Now minus 1 hour"); - test.equal(moment(a).subtract({ d: 1 }).calendar(), "Gestern um 2:00 Uhr", "yesterday at the same time"); + test.equal(moment(a).calendar(), "Heute um 02:00 Uhr", "today at the same time"); + test.equal(moment(a).add({ m: 25 }).calendar(), "Heute um 02:25 Uhr", "Now plus 25 min"); + test.equal(moment(a).add({ h: 1 }).calendar(), "Heute um 03:00 Uhr", "Now plus 1 hour"); + test.equal(moment(a).add({ d: 1 }).calendar(), "Morgen um 02:00 Uhr", "tomorrow at the same time"); + test.equal(moment(a).subtract({ h: 1 }).calendar(), "Heute um 01:00 Uhr", "Now minus 1 hour"); + test.equal(moment(a).subtract({ d: 1 }).calendar(), "Gestern um 02:00 Uhr", "yesterday at the same time"); test.done(); },