]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixing code style errors
authorAndre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org>
Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)
committerAndre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org>
Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)
lang/be.js
test/lang/be.js

index 64ac4b070a9a0259f2132f6e7cc63049ee219e97..aaa5dd28fed72db33c540f7d438978a1d3d4fe8c 100644 (file)
@@ -81,7 +81,7 @@
             nextDay: '[Заўтра ў] LT',
             lastDay: '[Учора ў] LT',
             nextWeek: function () {
-                return  '[У] dddd [ў] LT';
+                return '[У] dddd [ў] LT';
             },
             lastWeek: function () {
                 switch (this.day()) {
index 699146ea9742a59e174f4f3d3ce458a41eadebc7..11aff6cdbb6c7266d9d101d3d446062c4d6bdbf6 100644 (file)
@@ -241,11 +241,11 @@ exports["lang:be"] = {
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Сёння ў 02:00",     "today at the same time");
-        test.equal(moment(a).add({ m: 25 }).calendar(),      "Сёння ў 02:25",     "Now plus 25 min");
-        test.equal(moment(a).add({ h: 1 }).calendar(),       "Сёння ў 03:00",     "Now plus 1 hour");
-        test.equal(moment(a).add({ d: 1 }).calendar(),       "Заўтра ў 02:00",      "tomorrow at the same time");
-        test.equal(moment(a).subtract({ h: 1 }).calendar(),  "Сёння ў 01:00",     "Now minus 1 hour");
-        test.equal(moment(a).subtract({ d: 1 }).calendar(),  "Учора ў 02:00",       "yesterday at the same time");
+        test.equal(moment(a).add({m: 25}).calendar(),      "Сёння ў 02:25",     "Now plus 25 min");
+        test.equal(moment(a).add({h: 1}).calendar(),       "Сёння ў 03:00",     "Now plus 1 hour");
+        test.equal(moment(a).add({d: 1}).calendar(),       "Заўтра ў 02:00",      "tomorrow at the same time");
+        test.equal(moment(a).subtract({h: 1}).calendar(),  "Сёння ў 01:00",     "Now minus 1 hour");
+        test.equal(moment(a).subtract({d: 1}).calendar(),  "Учора ў 02:00",       "yesterday at the same time");
         test.done();
     },
 
@@ -258,7 +258,7 @@ exports["lang:be"] = {
         }
 
         for (i = 2; i < 7; i++) {
-            m = moment().add({ d: i });
+            m = moment().add({d: i});
             test.equal(m.calendar(),       m.format(makeFormat(m)),  "Today + " + i + " days current time");
             m.hours(0).minutes(0).seconds(0).milliseconds(0);
             test.equal(m.calendar(),       m.format(makeFormat(m)),  "Today + " + i + " days beginning of day");
@@ -288,7 +288,7 @@ exports["lang:be"] = {
         }
 
         for (i = 2; i < 7; i++) {
-            m = moment().subtract({ d: i });
+            m = moment().subtract({d: i});
             test.equal(m.calendar(),       m.format(makeFormat(m)),  "Today - " + i + " days current time");
             m.hours(0).minutes(0).seconds(0).milliseconds(0);
             test.equal(m.calendar(),       m.format(makeFormat(m)),  "Today - " + i + " days beginning of day");
@@ -301,14 +301,14 @@ exports["lang:be"] = {
     "calendar all else" : function (test) {
         test.expect(4);
 
-        var weeksAgo = moment().subtract({ w: 1 }),
-            weeksFromNow = moment().add({ w: 1 });
+        var weeksAgo = moment().subtract({w: 1}),
+            weeksFromNow = moment().add({w: 1});
 
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
 
-        weeksAgo = moment().subtract({ w: 2 });
-        weeksFromNow = moment().add({ w: 2 });
+        weeksAgo = moment().subtract({w: 2});
+        weeksFromNow = moment().add({w: 2});
 
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");