]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Remove padding newlines in the begining of functions 1755/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 3 Jul 2014 08:22:22 +0000 (01:22 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 3 Jul 2014 08:22:22 +0000 (01:22 -0700)
85 files changed:
lang/az.js
lang/bs.js
lang/hr.js
lang/hy-am.js
lang/ka.js
lang/lb.js
lang/sr-cyrl.js
lang/sr.js
lang/tr.js
moment.js
test/lang/ar-ma.js
test/lang/ar.js
test/lang/az.js
test/lang/bg.js
test/lang/bs.js
test/lang/ca.js
test/lang/cs.js
test/lang/cv.js
test/lang/cy.js
test/lang/da.js
test/lang/de.js
test/lang/el.js
test/lang/en-au.js
test/lang/en-ca.js
test/lang/en-gb.js
test/lang/en.js
test/lang/eo.js
test/lang/es.js
test/lang/et.js
test/lang/eu.js
test/lang/fa.js
test/lang/fi.js
test/lang/fo.js
test/lang/fr-ca.js
test/lang/fr.js
test/lang/gl.js
test/lang/he.js
test/lang/hi.js
test/lang/hr.js
test/lang/hu.js
test/lang/hy-am.js
test/lang/id.js
test/lang/is.js
test/lang/it.js
test/lang/ja.js
test/lang/ka.js
test/lang/km.js
test/lang/ko.js
test/lang/lb.js
test/lang/lt.js
test/lang/lv.js
test/lang/mk.js
test/lang/ml.js
test/lang/mr.js
test/lang/ms-my.js
test/lang/nb.js
test/lang/ne.js
test/lang/nl.js
test/lang/nn.js
test/lang/pl.js
test/lang/pt-br.js
test/lang/pt.js
test/lang/ro.js
test/lang/ru.js
test/lang/sk.js
test/lang/sl.js
test/lang/sq.js
test/lang/sr-cyrl.js
test/lang/sr.js
test/lang/sv.js
test/lang/ta.js
test/lang/th.js
test/lang/tl-ph.js
test/lang/tr.js
test/lang/tzm-latn.js
test/lang/tzm.js
test/lang/uk.js
test/lang/uz.js
test/lang/vi.js
test/lang/zh-cn.js
test/lang/zh-tw.js
test/moment/create.js
test/moment/format.js
test/moment/is_valid.js
test/moment/parsing_flags.js

index bee1f9a334aa4bd4a2a63832d01839b46d12a2e8..2d064e23f38a84276926ddc0c067d033bbf5498d 100644 (file)
@@ -11,7 +11,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     var suffixes = {
         1: "-inci",
         5: "-inci",
index efaed76f3b996bab2f4a5aba9c012bee2233bece..56147e3cc8d389d2a7006f1823b4a8e6921b565b 100644 (file)
@@ -12,7 +12,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     function translate(number, withoutSuffix, key) {
         var result = number + " ";
         switch (key) {
index 2e3bf11283f13481de6bce38e84b7aca4a1016e6..232ffdde44dc8b2228ac68cfe3709385810f0519 100644 (file)
@@ -13,7 +13,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     function translate(number, withoutSuffix, key) {
         var result = number + " ";
         switch (key) {
index 951655bc2136b4a7e06a276e9e5e97b5f574b82a..5bb72d6f9c233ce95d5b9614c485096c52ee0522 100644 (file)
@@ -11,7 +11,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     function monthsCaseReplace(m, format) {
         var months = {
             'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
index 0cebdaae22c392a33d12d319b16d3c15fa6cfda6..546da1a7ac77a93fca25a0f8c21a1ef9f4e53b42 100644 (file)
@@ -11,7 +11,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     function monthsCaseReplace(m, format) {
         var months = {
             'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
index 9e4228f75965e0079c52a72bd7581b33ec0e612d..4e3df699b04ef3a5611a2901d8d93719d53d6da3 100644 (file)
@@ -15,7 +15,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     function processRelativeTime(number, withoutSuffix, key, isFuture) {
         var format = {
             'm': ['eng Minutt', 'enger Minutt'],
index ae1754b34dc0ec214f255a676c56ce041f0e850d..857cd8c2afdcf057623189f68e8e5ed28f599330 100644 (file)
@@ -11,7 +11,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     var translator = {
         words: { //Different grammatical cases
             m: ['један минут', 'једне минуте'],
index 54a5f4f6e76e7a77a0f54e850571a4c61c55e594..3d58f841b13501aa0e8651dc51f565ecb67f69d4 100644 (file)
@@ -11,7 +11,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     var translator = {
         words: { //Different grammatical cases
             m: ['jedan minut', 'jedne minute'],
index e90f250e5902665784181e679dabda9478b80a40..20e05f197820bdc6b5a8f74e27ee172b6bcbb164 100644 (file)
@@ -12,7 +12,6 @@
         factory(window.moment); // Browser global
     }
 }(function (moment) {
-
     var suffixes = {
         1: "'inci",
         5: "'inci",
index 7a7eec216878fde4a8da38d0c08894e8c005c370..a7cbd43c8ceb2363d3fb98ca6647683bf2d8e6ab 100644 (file)
--- a/moment.js
+++ b/moment.js
@@ -5,7 +5,6 @@
 //! momentjs.com
 
 (function (undefined) {
-
     /************************************
         Constants
     ************************************/
     ************************************/
 
     function Language() {
-
     }
 
     // Moment prototype object
 
     // format date using native date object
     function formatMoment(m, format) {
-
         if (!m.isValid()) {
             return m.lang().invalidDate();
         }
 
     // date from string and format string
     function makeDateFromStringAndFormat(config) {
-
         if (config._f === moment.ISO_8601) {
             parseISO(config);
             return;
             config._d = new Date();
         } else if (isDate(input)) {
             config._d = new Date(+input);
-        } else if ( (matched = aspNetJsonRegex.exec(input)) !== null ) {
+        } else if ((matched = aspNetJsonRegex.exec(input)) !== null) {
             config._d = new Date(+matched[1]);
         } else if (typeof input === 'string') {
             makeDateFromString(config);
         },
 
         isDSTShifted : function () {
-
             if (this._a) {
                 return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0;
             }
index 9b0cda61700c132f86e7d4e893a2b4afb5b694b6..9401b680064208706a55998a70c772d227d651ff 100644 (file)
@@ -173,7 +173,6 @@ exports["lang:ar-ma"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "اليوم على الساعة 02:00",     "today at the same time");
@@ -186,7 +185,6 @@ exports["lang:ar-ma"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -200,7 +198,6 @@ exports["lang:ar-ma"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -233,7 +230,6 @@ exports["lang:ar-ma"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 31]).week(), 1, "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).week(), 1, "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).week(), 2, "Jan  7 2012 should be week 2");
@@ -244,7 +240,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 30]).week(), 1, "Dec 30 2006 should be week 1");
         test.equal(moment([2007,  0,  5]).week(), 1, "Jan  5 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 2, "Jan  6 2007 should be week 2");
@@ -255,7 +250,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 1, "Dec 29 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  4]).week(), 1, "Jan  4 2008 should be week 1");
@@ -267,7 +261,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 28]).week(), 1, "Dec 28 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  3]).week(), 1, "Jan  3 2003 should be week 1");
@@ -279,7 +272,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 27]).week(), 1, "Dec 27 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  2]).week(), 1, "Jan  2 2009 should be week 1");
@@ -291,7 +283,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 26]).week(), 1, "Dec 26 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 2, "Jan  2 2010 should be week 2");
@@ -302,7 +293,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011, 0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011, 0,  7]).week(), 1, "Jan  7 2011 should be week 1");
         test.equal(moment([2011, 0,  8]).week(), 2, "Jan  8 2011 should be week 2");
@@ -313,7 +303,6 @@ exports["lang:ar-ma"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 31]).format('w ww wo'), '1 01 1', "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).format('w ww wo'), '1 01 1', "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).format('w ww wo'), '2 02 2', "Jan  7 2012 should be week 2");
index c85fabd6a837f69bcc9260347c035c1085d804b2..d8648bf502be92782da51796459866b018ce0cc4 100644 (file)
@@ -107,7 +107,6 @@ exports["lang:ar"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'يناير/ كانون الثاني يناير/ كانون الثاني_فبراير/ شباط فبراير/ شباط_مارس/ آذار مارس/ آذار_أبريل/ نيسان أبريل/ نيسان_مايو/ أيار مايو/ أيار_يونيو/ حزيران يونيو/ حزيران_يوليو/ تموز يوليو/ تموز_أغسطس/ آب أغسطس/ آب_سبتمبر/ أيلول سبتمبر/ أيلول_أكتوبر/ تشرين الأول أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول ديسمبر/ كانون الأول'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -116,7 +115,6 @@ exports["lang:ar"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'الأحد أحد ح_الإثنين إثنين ن_الثلاثاء ثلاثاء ث_الأربعاء أربعاء ر_الخميس خميس خ_الجمعة جمعة ج_السبت سبت س'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -125,7 +123,6 @@ exports["lang:ar"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "ثوان", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "دقيقة",      "45 seconds = a minute");
@@ -176,7 +173,6 @@ exports["lang:ar"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "اليوم على الساعة ٠٢:٠٠",     "today at the same time");
@@ -189,7 +185,6 @@ exports["lang:ar"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +198,6 @@ exports["lang:ar"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -217,7 +211,6 @@ exports["lang:ar"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -237,7 +230,6 @@ exports["lang:ar"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 31]).week(), 1, "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).week(), 1, "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).week(), 2, "Jan  7 2012 should be week 2");
@@ -248,7 +240,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 30]).week(), 1, "Dec 30 2006 should be week 1");
         test.equal(moment([2007,  0,  5]).week(), 1, "Jan  5 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 2, "Jan  6 2007 should be week 2");
@@ -259,7 +250,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 1, "Dec 29 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  4]).week(), 1, "Jan  4 2008 should be week 1");
@@ -271,7 +261,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 28]).week(), 1, "Dec 28 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  3]).week(), 1, "Jan  3 2003 should be week 1");
@@ -288,7 +277,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 27]).week(), 1, "Dec 27 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  2]).week(), 1, "Jan  2 2009 should be week 1");
@@ -300,7 +288,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 26]).week(), 1, "Dec 26 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 2, "Jan  2 2010 should be week 2");
@@ -311,7 +298,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011, 0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011, 0,  7]).week(), 1, "Jan  7 2011 should be week 1");
         test.equal(moment([2011, 0,  8]).week(), 2, "Jan  8 2011 should be week 2");
@@ -322,7 +308,6 @@ exports["lang:ar"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 31]).format('w ww wo'), '١ ٠١ ١', "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).format('w ww wo'), '١ ٠١ ١', "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).format('w ww wo'), '٢ ٠٢ ٢', "Jan  7 2012 should be week 2");
index 15554d79d634cbc341b2aad675607f95c9f25a44..11bbf14bbdb9bd6c2245ed078890eab65adc93d6 100644 (file)
@@ -41,7 +41,6 @@ exports["lang:az"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, D MMMM YYYY, HH:mm:ss',        'Bazar, 14 fevral 2010, 15:25:50'],
                 ['ddd, A h',                           'Baz, gündüz 3'],
index 68f30f07cffb3dfad5e082c7873cdd7f3684f898..95bbb5b509a192b04572a4a1e653c7c9ac5cd77d 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:bg"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Днес в 2:00",  "today at the same time");
@@ -189,7 +188,6 @@ exports["lang:bg"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +201,6 @@ exports["lang:bg"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -250,7 +247,6 @@ exports["lang:bg"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -261,7 +257,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -272,7 +267,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -284,7 +278,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -296,7 +289,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -308,7 +300,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -320,7 +311,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -332,7 +322,6 @@ exports["lang:bg"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-ви', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-ви', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-ри', "Jan  2 2012 should be week 2");
index 4aafd24496d5f3c104cf4971624f46a98589f11c..3a202d737eb8a82e926b345376fbb8008aca9f50 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:bs"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januar jan._februar feb._mart mar._april apr._maj maj._juni jun._juli jul._avgust avg._septembar sep._oktobar okt._novembar nov._decembar dec.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -177,7 +176,6 @@ exports["lang:bs"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "danas u 2:00",  "today at the same time");
@@ -190,7 +188,6 @@ exports["lang:bs"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -221,7 +218,6 @@ exports["lang:bs"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -251,7 +247,6 @@ exports["lang:bs"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -271,7 +266,6 @@ exports["lang:bs"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -282,7 +276,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -293,7 +286,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -305,7 +297,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -317,7 +308,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -329,7 +319,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -341,7 +330,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -353,7 +341,6 @@ exports["lang:bs"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index b1bba37398e8204d2da5085e8c70313e0c5748a7..3c6194d7cf75c212517dae6f10ce73b1a8b6caa2 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ca"] = {
     },
 
     "parse" : function (test) {
-
         var tests = "gener gen._febrer febr._març mar._abril abr._maig mai._juny jun._juliol jul._agost ag._setembre set._octubre oct._novembre nov._desembre des.".split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -144,7 +143,6 @@ exports["lang:ca"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                         "avui a les 2:00",     "today at the same time");
@@ -158,7 +156,6 @@ exports["lang:ca"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -172,7 +169,6 @@ exports["lang:ca"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -205,7 +201,6 @@ exports["lang:ca"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -216,7 +211,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -227,7 +221,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -239,7 +232,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -251,7 +243,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -263,7 +254,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -275,7 +265,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -287,7 +276,6 @@ exports["lang:ca"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52º', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1º', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1º', "Jan  8 2012 should be week 1");
index 594e5023477fadb630ad7eb4df75eca913de995b..433457ecfd0f45b271fa68a52071bb01fe9b6c37 100644 (file)
@@ -210,7 +210,6 @@ exports["lang:cs"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "dnes v 2.00",     "today at the same time");
@@ -223,7 +222,6 @@ exports["lang:cs"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m, nextDay;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -261,7 +259,6 @@ exports["lang:cs"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m, lastDay;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -325,7 +322,6 @@ exports["lang:cs"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -336,7 +332,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -347,7 +342,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -359,7 +353,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -371,7 +364,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -383,7 +375,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -395,7 +386,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -407,7 +397,6 @@ exports["lang:cs"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 18f38d1388d46474971e805694a98d9a10c21f5f..2b9ac1e16068e4132f492a17d23f3dd1364f9a80 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:cv"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'кăрлач кăр_нарăс нар_пуш пуш_ака ака_май май_çĕртме çĕр_утă утă_çурла çур_авăн ав_юпа юпа_чӳк чӳк_раштав раш'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:cv"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'вырсарникун, нарăс 14-мĕш 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'выр, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:cv"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1-мĕш', '1-мĕш');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2-мĕш', '2-мĕш');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3-мĕш', '3-мĕш');
@@ -113,7 +110,6 @@ exports["lang:cv"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'кăрлач кăр_нарăс нар_пуш пуш_ака ака_май май_çĕртме çĕр_утă утă_çурла çур_авăн ав_юпа юпа_чӳк чӳк_раштав раш'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:cv"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'вырсарникун выр вр_тунтикун тун тн_ытларикун ытл ыт_юнкун юн юн_кĕçнерникун кĕç кç_эрнекун эрн эр_шăматкун шăм шм'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:cv"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "пĕр-ик çеккунт", "44 sekunder = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "пĕр минут",      "45 seconds = a minute");
@@ -195,7 +189,6 @@ exports["lang:cv"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -210,7 +203,6 @@ exports["lang:cv"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -243,7 +235,6 @@ exports["lang:cv"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -254,7 +245,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -265,7 +255,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -277,7 +266,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -289,7 +277,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -301,7 +288,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -313,7 +299,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -325,7 +310,6 @@ exports["lang:cv"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-мĕш', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-мĕш', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-мĕш', "Jan  2 2012 should be week 2");
index 3f41b249cd2da29d934793107b3b4ff35db22ef3..24a3263758fad3316cd3d5dac714f093c3a9e25d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:cy"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'Ionawr Ion_Chwefror Chwe_Mawrth Maw_Ebrill Ebr_Mai Mai_Mehefin Meh_Gorffennaf Gor_Awst Aws_Medi Med_Hydref Hyd_Tachwedd Tach_Rhagfyr Rhag'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -41,7 +40,6 @@ exports["lang:cy"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Dydd Sul, Chwefror 14eg 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Sul, 3PM'],
@@ -75,7 +73,6 @@ exports["lang:cy"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1af', '1af');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2il', '2il');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3ydd', '3ydd');
@@ -114,7 +111,6 @@ exports["lang:cy"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'Ionawr Ion_Chwefror Chwe_Mawrth Maw_Ebrill Ebr_Mai Mai_Mehefin Meh_Gorffennaf Gor_Awst Aws_Medi Med_Hydref Hyd_Tachwedd Tach_Rhagfyr Rhag'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -123,7 +119,6 @@ exports["lang:cy"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Dydd Sul Sul Su_Dydd Llun Llun Ll_Dydd Mawrth Maw Ma_Dydd Mercher Mer Me_Dydd Iau Iau Ia_Dydd Gwener Gwe Gw_Dydd Sadwrn Sad Sa'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -132,7 +127,6 @@ exports["lang:cy"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "ychydig eiliadau", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "munud",   "45 seconds = a minute");
@@ -166,21 +160,18 @@ exports["lang:cy"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "mewn ychydig eiliadau", "prefix");
         test.equal(moment(0).from(30000), "ychydig eiliadau yn ôl", "suffix");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "mewn ychydig eiliadau", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "mewn 5 diwrnod", "in 5 days");
         test.done();
     },
 
     "same day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Heddiw am 02:00",    "today at the same time");
@@ -193,7 +184,6 @@ exports["lang:cy"] = {
     },
 
     "same next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -208,7 +198,6 @@ exports["lang:cy"] = {
     },
 
     "same last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -241,7 +230,6 @@ exports["lang:cy"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +240,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +250,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +261,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +272,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +283,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +294,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +305,6 @@ exports["lang:cy"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52ain', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'), '1 01 1af', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '1 01 1af', "Jan  8 2012 should be week 1");
index d0832aa285f7f8f32bf183d3e39bc3920900c807..4d5aebc11e24cebd70fd5245f61f4b1a7500ff24 100644 (file)
@@ -179,7 +179,6 @@ exports["lang:da"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -190,7 +189,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -201,7 +199,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -213,7 +210,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -225,7 +221,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -237,7 +232,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -249,7 +243,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -261,7 +254,6 @@ exports["lang:da"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 39406284026fd2c4a1704bde177a791600aa7f5d..25bd1f2b27648a22b85289fa10707a75b7a52272 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:de"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'Januar Jan._Februar Febr._März Mrz._April Apr._Mai Mai_Juni Jun._Juli Jul._August Aug._September Sept._Oktober Okt._November Nov._Dezember Dez.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:de"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, h:mm:ss a',      'Sonntag, 14. Februar 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'So., 3PM'],
@@ -74,7 +72,6 @@ exports["lang:de"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:de"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'Januar Jan._Februar Febr._März Mrz._April Apr._Mai Mai_Juni Jun._Juli Jul._August Aug._September Sept._Oktober Okt._November Nov._Dezember Dez.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:de"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Sonntag So. So_Montag Mo. Mo_Dienstag Di. Di_Mittwoch Mi. Mi_Donnerstag Do. Do_Freitag Fr. Fr_Samstag Sa. Sa'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -176,7 +171,6 @@ exports["lang:de"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Heute um 02:00 Uhr",   "today at the same time");
@@ -189,7 +183,6 @@ exports["lang:de"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +196,6 @@ exports["lang:de"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -217,7 +209,6 @@ exports["lang:de"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -237,7 +228,6 @@ exports["lang:de"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -248,7 +238,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -259,7 +248,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -271,7 +259,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -283,7 +270,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -295,7 +281,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -307,7 +292,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -319,7 +303,6 @@ exports["lang:de"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 0b731875d389f69987aa3de130e8aa96e6e8456f..0af41809f54c9b17e138605412cae42aa5f00124 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:el"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'Ιανουάριος Ιαν_Φεβρουάριος Φεβ_Μάρτιος Μαρ_Απρίλιος Απρ_Μάιος Μαϊ_Ιούνιος Ιουν_Ιούλιος Ιουλ_Αύγουστος Αυγ_Σεπτέμβριος Σεπ_Οκτώβριος Οκτ_Νοέμβριος Νοε_Δεκέμβριος Δεκ'.split("_");
 
@@ -44,7 +43,6 @@ exports["lang:el"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Κυριακή, Φεβρουάριος 14η 2010, 3:25:50 μμ'],
                 ['dddd, D MMMM YYYY, h:mm:ss a',       'Κυριακή, 14 Φεβρουαρίου 2010, 3:25:50 μμ'],
@@ -82,7 +80,6 @@ exports["lang:el"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1η', '1η');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2η', '2η');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3η', '3η');
@@ -121,7 +118,6 @@ exports["lang:el"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'Ιανουάριος Ιαν_Φεβρουάριος Φεβ_Μάρτιος Μαρ_Απρίλιος Απρ_Μάιος Μαϊ_Ιούνιος Ιουν_Ιούλιος Ιουλ_Αύγουστος Αυγ_Σεπτέμβριος Σεπ_Οκτώβριος Οκτ_Νοέμβριος Νοε_Δεκέμβριος Δεκ'.split("_");
 
@@ -132,7 +128,6 @@ exports["lang:el"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'Κυριακή Κυρ Κυ_Δευτέρα Δευ Δε_Τρίτη Τρι Τρ_Τετάρτη Τετ Τε_Πέμπτη Πεμ Πε_Παρασκευή Παρ Πα_Σάββατο Σαβ Σα'.split("_");
 
@@ -144,7 +139,6 @@ exports["lang:el"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "δευτερόλεπτα",   "44 seconds = a few seconds");
@@ -180,7 +174,6 @@ exports["lang:el"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "σε δευτερόλεπτα",  "prefix");
         test.equal(moment(0).from(30000), "δευτερόλεπτα πριν", "suffix");
 
@@ -188,14 +181,12 @@ exports["lang:el"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "δευτερόλεπτα πριν",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "σε δευτερόλεπτα", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "σε 5 μέρες", "in 5 days");
 
@@ -203,7 +194,6 @@ exports["lang:el"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Σήμερα στις 2:00 ΠΜ",     "today at the same time");
@@ -217,7 +207,6 @@ exports["lang:el"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -231,7 +220,6 @@ exports["lang:el"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m, dayString;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -248,7 +236,6 @@ exports["lang:el"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -268,7 +255,6 @@ exports["lang:el"] = {
     // The week that contains Jan 4st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 1, "Jan  8 2012 should be week 1");
@@ -279,7 +265,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 52, "Dec 31 2006 should be week 52");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -291,7 +276,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 30]).week(), 52, "Dec 30 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -303,7 +287,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 52, "Dec 29 2002 should be week 52");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -315,7 +298,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 52, "Dec 28 2008 should be week 52");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -327,7 +309,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 52, "Dec 27 2009 should be week 52");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  2]).week(), 53, "Jan  2 2010 should be week 53");
@@ -340,7 +321,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 51, "Dec 26 2010 should be week 51");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -352,7 +332,6 @@ exports["lang:el"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52η', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  7]).format('w ww wo'),   '1 01 1η', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1η', "Jan  8 2012 should be week 1");
index 0edaf18f44285fefb2c2f8d9cf06d759f82709f9..08792f8b4dd85c1a23bb895544dfbdd0c04851f5 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:en-au"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Today at 2:00 AM",      "today at the same time");
@@ -189,7 +188,6 @@ exports["lang:en-au"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +201,6 @@ exports["lang:en-au"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -218,7 +215,6 @@ exports["lang:en-au"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -238,7 +234,6 @@ exports["lang:en-au"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -249,7 +244,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -260,7 +254,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -272,7 +265,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -284,7 +276,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -296,7 +287,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -308,7 +298,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -320,7 +309,6 @@ exports["lang:en-au"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52nd', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1st', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1st', "Jan  8 2012 should be week 1");
index 60f0f4d213992c8d9a760a7823e8708bfb02443f..6ff074b21fb1d5a84901e0b7c769382f7c1222a3 100644 (file)
@@ -19,7 +19,6 @@ exports["lang:en-ca"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'January Jan_February Feb_March Mar_April Apr_May May_June Jun_July Jul_August Aug_September Sep_October Oct_November Nov_December Dec'.split("_");
 
@@ -43,7 +42,6 @@ exports["lang:en-ca"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Sunday, February 14th 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Sun, 3PM'],
@@ -79,7 +77,6 @@ exports["lang:en-ca"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1st', '1st');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2nd', '2nd');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3rd', '3rd');
@@ -119,7 +116,6 @@ exports["lang:en-ca"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'January Jan_February Feb_March Mar_April Apr_May May_June Jun_July Jul_August Aug_September Sep_October Oct_November Nov_December Dec'.split("_");
 
@@ -131,7 +127,6 @@ exports["lang:en-ca"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'Sunday Sun Su_Monday Mon Mo_Tuesday Tue Tu_Wednesday Wed We_Thursday Thu Th_Friday Fri Fr_Saturday Sat Sa'.split("_");
 
@@ -143,7 +138,6 @@ exports["lang:en-ca"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "a few seconds", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "a minute",      "45 seconds = a minute");
@@ -178,7 +172,6 @@ exports["lang:en-ca"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "in a few seconds",  "prefix");
         test.equal(moment(0).from(30000), "a few seconds ago", "suffix");
 
@@ -186,14 +179,12 @@ exports["lang:en-ca"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "a few seconds ago",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "in a few seconds", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "in 5 days", "in 5 days");
 
@@ -201,7 +192,6 @@ exports["lang:en-ca"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Today at 2:00 AM",     "today at the same time");
@@ -214,7 +204,6 @@ exports["lang:en-ca"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -229,7 +218,6 @@ exports["lang:en-ca"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -244,7 +232,6 @@ exports["lang:en-ca"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -264,7 +251,6 @@ exports["lang:en-ca"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -275,7 +261,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -287,7 +272,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -299,7 +283,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -311,7 +294,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -323,7 +305,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -335,7 +316,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -346,7 +326,6 @@ exports["lang:en-ca"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1st', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1st', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2nd', "Jan  8 2012 should be week 2");
index 0fc81337ce5bfbbd8340014fedf141645e3c5f27..6e6e6721319a46456e4327a5936c72321e07fe35 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:en-gb"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Today at 02:00",      "today at the same time");
@@ -189,7 +188,6 @@ exports["lang:en-gb"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +201,6 @@ exports["lang:en-gb"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -218,7 +215,6 @@ exports["lang:en-gb"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -238,7 +234,6 @@ exports["lang:en-gb"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -249,7 +244,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -260,7 +254,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -272,7 +265,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -284,7 +276,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -296,7 +287,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -308,7 +298,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -320,7 +309,6 @@ exports["lang:en-gb"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52nd', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1st', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1st', "Jan  8 2012 should be week 1");
index 68700d69b2aba91429eb3ed7cde667d5934ad8af..b9641226a03219474af2cda14e2913397ead29d1 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:en"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'January Jan_February Feb_March Mar_April Apr_May May_June Jun_July Jul_August Aug_September Sep_October Oct_November Nov_December Dec'.split("_");
 
@@ -44,7 +43,6 @@ exports["lang:en"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Sunday, February 14th 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Sun, 3PM'],
@@ -80,7 +78,6 @@ exports["lang:en"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1st', '1st');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2nd', '2nd');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3rd', '3rd');
@@ -119,7 +116,6 @@ exports["lang:en"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'January Jan_February Feb_March Mar_April Apr_May May_June Jun_July Jul_August Aug_September Sep_October Oct_November Nov_December Dec'.split("_");
 
@@ -130,7 +126,6 @@ exports["lang:en"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'Sunday Sun Su_Monday Mon Mo_Tuesday Tue Tu_Wednesday Wed We_Thursday Thu Th_Friday Fri Fr_Saturday Sat Sa'.split("_");
 
@@ -142,7 +137,6 @@ exports["lang:en"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "a few seconds", "44 seconds = a few seconds");
@@ -178,7 +172,6 @@ exports["lang:en"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "in a few seconds",  "prefix");
         test.equal(moment(0).from(30000), "a few seconds ago", "suffix");
 
@@ -186,14 +179,12 @@ exports["lang:en"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "a few seconds ago",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "in a few seconds", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "in 5 days", "in 5 days");
 
@@ -201,7 +192,6 @@ exports["lang:en"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Today at 2:00 AM",     "today at the same time");
@@ -215,7 +205,6 @@ exports["lang:en"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -230,7 +219,6 @@ exports["lang:en"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -245,7 +233,6 @@ exports["lang:en"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -265,7 +252,6 @@ exports["lang:en"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -276,7 +262,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -288,7 +273,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -300,7 +284,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -312,7 +295,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -324,7 +306,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -336,7 +317,6 @@ exports["lang:en"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
index 5099c29c9c460ca175356574d2dd970aca5e413d..8dbc696aa7788115307968d42cbdde54e29df615 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:eo"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januaro jan_februaro feb_marto mar_aprilo apr_majo maj_junio jun_julio jul_aŭgusto aŭg_septembro sep_oktobro okt_novembro nov_decembro dec'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:eo"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Dimanĉo, februaro 14a 2010, 3:25:50 p.t.m.'],
                 ['ddd, hA',                            'Dim, 3P.T.M.'],
@@ -74,7 +72,6 @@ exports["lang:eo"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1a', '1a');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2a', '2a');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3a', '3a');
@@ -113,7 +110,6 @@ exports["lang:eo"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'januaro jan_februaro feb_marto mar_aprilo apr_majo maj_junio jun_julio jul_aŭgusto aŭg_septembro sep_oktobro okt_novembro nov_decembro dec'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:eo"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Dimanĉo Dim Di_Lundo Lun Lu_Mardo Mard Ma_Merkredo Merk Me_Ĵaŭdo Ĵaŭ Ĵa_Vendredo Ven Ve_Sabato Sab Sa'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:eo"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "sekundoj", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minuto",      "45 seconds = a minute");
@@ -182,7 +176,6 @@ exports["lang:eo"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hodiaŭ je 02:00",     "today at the same time");
@@ -195,7 +188,6 @@ exports["lang:eo"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -210,7 +202,6 @@ exports["lang:eo"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -225,7 +216,6 @@ exports["lang:eo"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -245,7 +235,6 @@ exports["lang:eo"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -256,7 +245,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -267,7 +255,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -279,7 +266,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -291,7 +277,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -303,7 +288,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -315,7 +299,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -327,7 +310,6 @@ exports["lang:eo"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1a', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1a', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2a', "Jan  2 2012 should be week 2");
index 6eb9592a4e1d9edc69571c6d29981e8d48c02bd6..f8e74b3a5d29e42050acc81950828ca09b030859 100644 (file)
@@ -177,7 +177,6 @@ exports["lang:es"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                         "hoy a las 2:00",     "today at the same time");
@@ -191,7 +190,6 @@ exports["lang:es"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -206,7 +204,6 @@ exports["lang:es"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -221,7 +218,6 @@ exports["lang:es"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -241,7 +237,6 @@ exports["lang:es"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +247,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +257,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +268,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +279,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +290,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +301,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +312,6 @@ exports["lang:es"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52º', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1º', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1º', "Jan  8 2012 should be week 1");
index 33dfd0cc6a28e65b442c66433b8aed7dd14909ab..9d00d83c3e4686d4664068aca8d7d79c14b98244 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:et"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'jaanuar jaan_veebruar veebr_märts märts_aprill apr_mai mai_juuni juuni_juuli juuli_august aug_september sept_oktoober okt_november nov_detsember dets'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' peaks olema kuu ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:et"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, H:mm:ss',      'pühapäev, 14. veebruar 2010, 15:25:50'],
                 ['ddd, h',                           'P, 3'],
@@ -74,7 +72,6 @@ exports["lang:et"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:et"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'jaanuar jaan_veebruar veebr_märts märts_aprill apr_mai mai_juuni juuni_juuli juuli_august aug_september sept_oktoober okt_november nov_detsember dets'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:et"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'pühapäev P P_esmaspäev E E_teisipäev T T_kolmapäev K K_neljapäev N N_reede R R_laupäev L L'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:et"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "paar sekundit",  "44 seconds = paar sekundit");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "üks minut",      "45 seconds = üks minut");
@@ -165,20 +159,17 @@ exports["lang:et"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "mõne sekundi pärast",  "prefix");
         test.equal(moment(0).from(30000), "mõni sekund tagasi", "suffix");
         test.done();
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "mõni sekund tagasi",  "now from now should display as in the past");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "mõne sekundi pärast", "in a few seconds");
         test.equal(moment().subtract({s: 30}).fromNow(), "mõni sekund tagasi", "a few seconds ago");
 
@@ -209,7 +200,6 @@ exports["lang:et"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Täna, 2:00",     "today at the same time");
@@ -222,7 +212,6 @@ exports["lang:et"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -236,7 +225,6 @@ exports["lang:et"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -250,7 +238,6 @@ exports["lang:et"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -270,7 +257,6 @@ exports["lang:et"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -281,7 +267,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -292,7 +277,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -304,7 +288,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -316,7 +299,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -328,7 +310,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -340,7 +321,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -352,7 +332,6 @@ exports["lang:et"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 72e91feeab35be193ff967de0f524e71ba3baac0..4351c96fe03303823394761e764526af6c921f1b 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:eu"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'urtarrila urt._otsaila ots._martxoa mar._apirila api._maiatza mai._ekaina eka._uztaila uzt._abuztua abu._iraila ira._urria urr._azaroa aza._abendua abe.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:eu"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'igandea, otsaila 14. 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'ig., 3PM'],
@@ -74,7 +72,6 @@ exports["lang:eu"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:eu"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'urtarrila urt._otsaila ots._martxoa mar._apirila api._maiatza mai._ekaina eka._uztaila uzt._abuztua abu._iraila ira._urria urr._azaroa aza._abendua abe.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:eu"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'igandea ig. ig_astelehena al. al_asteartea ar. ar_asteazkena az. az_osteguna og. og_ostirala ol. ol_larunbata lr. lr'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:eu"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "segundo batzuk", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minutu bat",     "45 seconds = a minute");
@@ -182,7 +176,6 @@ exports["lang:eu"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "gaur 02:00etan",  "today at the same time");
@@ -195,7 +188,6 @@ exports["lang:eu"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -209,7 +201,6 @@ exports["lang:eu"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -223,7 +214,6 @@ exports["lang:eu"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -242,7 +232,6 @@ exports["lang:eu"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -253,7 +242,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -264,7 +252,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -276,7 +263,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -288,7 +274,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -300,7 +285,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -312,7 +296,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -324,7 +307,6 @@ exports["lang:eu"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index e6e496dc40c20d1af4479c6abcc0ca3e42f14f1a..8291b59304c656d466a319a6ff8b60498e1bdc12 100644 (file)
@@ -166,7 +166,6 @@ exports["lang:fa"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "امروز ساعت ۰۲:۰۰", "today at the same time");
@@ -179,7 +178,6 @@ exports["lang:fa"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -193,7 +191,6 @@ exports["lang:fa"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -226,7 +223,6 @@ exports["lang:fa"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 31]).week(), 1, "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).week(), 1, "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).week(), 2, "Jan  7 2012 should be week 2");
@@ -237,7 +233,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 30]).week(), 1, "Dec 30 2006 should be week 1");
         test.equal(moment([2007,  0,  5]).week(), 1, "Jan  5 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 2, "Jan  6 2007 should be week 2");
@@ -248,7 +243,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 1, "Dec 29 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  4]).week(), 1, "Jan  4 2008 should be week 1");
@@ -260,7 +254,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 28]).week(), 1, "Dec 28 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  3]).week(), 1, "Jan  3 2003 should be week 1");
@@ -272,7 +265,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 27]).week(), 1, "Dec 27 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  2]).week(), 1, "Jan  2 2009 should be week 1");
@@ -284,7 +276,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 26]).week(), 1, "Dec 26 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 2, "Jan  2 2010 should be week 2");
@@ -295,7 +286,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011, 0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011, 0,  7]).week(), 1, "Jan  7 2011 should be week 1");
         test.equal(moment([2011, 0,  8]).week(), 2, "Jan  8 2011 should be week 2");
@@ -306,7 +296,6 @@ exports["lang:fa"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 31]).format('w ww wo'), '۱ ۰۱ ۱م', "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).format('w ww wo'), '۱ ۰۱ ۱م', "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).format('w ww wo'), '۲ ۰۲ ۲م', "Jan  7 2012 should be week 2");
index 54cee162626a5f83eb611e1507fdc439bc63df02..66f40393a3109795ecda05796925126e2f714ba5 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:fi"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "tänään klo 02.00",     "today at the same time");
@@ -189,7 +188,6 @@ exports["lang:fi"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -204,7 +202,6 @@ exports["lang:fi"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -218,7 +215,6 @@ exports["lang:fi"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -237,7 +233,6 @@ exports["lang:fi"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -248,7 +243,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -259,7 +253,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -271,7 +264,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -283,7 +275,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -295,7 +286,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -307,7 +297,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -319,7 +308,6 @@ exports["lang:fi"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 36d0b323a501fc8cba51f7b8dd6a22a2845d16d1..061d384219eb82f99b1f204a912c80cf20986eb8 100644 (file)
@@ -179,7 +179,6 @@ exports["lang:fo"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -190,7 +189,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -201,7 +199,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -213,7 +210,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -225,7 +221,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -237,7 +232,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -249,7 +243,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -261,7 +254,6 @@ exports["lang:fo"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index a0b5fcbd3aa74ad6736c8561a68a15893506db2d..3d1b621680f8e3f9029b4d2182957a5ffd3f5c39 100644 (file)
@@ -19,7 +19,6 @@ exports["lang:fr-ca"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'janvier janv._février févr._mars mars_avril avr._mai mai_juin juin_juillet juil._août août_septembre sept._octobre oct._novembre nov._décembre déc.'.split("_");
 
@@ -43,7 +42,6 @@ exports["lang:fr-ca"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'dimanche, février 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'dim., 3PM'],
@@ -79,7 +77,6 @@ exports["lang:fr-ca"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1er', '1er');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -119,7 +116,6 @@ exports["lang:fr-ca"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'janvier janv._février févr._mars mars_avril avr._mai mai_juin juin_juillet juil._août août_septembre sept._octobre oct._novembre nov._décembre déc.'.split("_");
 
@@ -131,7 +127,6 @@ exports["lang:fr-ca"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'dimanche dim. Di_lundi lun. Lu_mardi mar. Ma_mercredi mer. Me_jeudi jeu. Je_vendredi ven. Ve_samedi sam. Sa'.split("_");
 
@@ -143,7 +138,6 @@ exports["lang:fr-ca"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "quelques secondes", "44 seconds = a few seconds");
@@ -179,7 +173,6 @@ exports["lang:fr-ca"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "dans quelques secondes", "prefix");
         test.equal(moment(0).from(30000), "il y a quelques secondes", "suffix");
 
@@ -187,7 +180,6 @@ exports["lang:fr-ca"] = {
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "dans quelques secondes", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "dans 5 jours", "in 5 days");
 
@@ -195,7 +187,6 @@ exports["lang:fr-ca"] = {
     },
 
     "same day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Aujourd'hui à 02:00",    "today at the same time");
@@ -208,7 +199,6 @@ exports["lang:fr-ca"] = {
     },
 
     "same next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -223,7 +213,6 @@ exports["lang:fr-ca"] = {
     },
 
     "same last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -238,7 +227,6 @@ exports["lang:fr-ca"] = {
     },
 
     "same all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -258,7 +246,6 @@ exports["lang:fr-ca"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -269,7 +256,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -281,7 +267,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -293,7 +278,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -305,7 +289,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -317,7 +300,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -329,7 +311,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -340,7 +321,6 @@ exports["lang:fr-ca"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1er', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1er', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
index 8f10ffb79c891cf395850b1a80d6b9976601e7c2..0f499ff4a6dce556b48b4d6e50808769183fdcfd 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:fr"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'janvier janv._février févr._mars mars_avril avr._mai mai_juin juin_juillet juil._août août_septembre sept._octobre oct._novembre nov._décembre déc.'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -41,7 +40,6 @@ exports["lang:fr"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'dimanche, février 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'dim., 3PM'],
@@ -75,7 +73,6 @@ exports["lang:fr"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1er', '1er');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -114,7 +111,6 @@ exports["lang:fr"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'janvier janv._février févr._mars mars_avril avr._mai mai_juin juin_juillet juil._août août_septembre sept._octobre oct._novembre nov._décembre déc.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -123,7 +119,6 @@ exports["lang:fr"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'dimanche dim. Di_lundi lun. Lu_mardi mar. Ma_mercredi mer. Me_jeudi jeu. Je_vendredi ven. Ve_samedi sam. Sa'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -132,7 +127,6 @@ exports["lang:fr"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "quelques secondes", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "une minute",   "45 seconds = a minute");
@@ -166,21 +160,18 @@ exports["lang:fr"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "dans quelques secondes", "prefix");
         test.equal(moment(0).from(30000), "il y a quelques secondes", "suffix");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "dans quelques secondes", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "dans 5 jours", "in 5 days");
         test.done();
     },
 
     "same day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Aujourd'hui à 02:00",    "today at the same time");
@@ -193,7 +184,6 @@ exports["lang:fr"] = {
     },
 
     "same next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -208,7 +198,6 @@ exports["lang:fr"] = {
     },
 
     "same last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -241,7 +230,6 @@ exports["lang:fr"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +240,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +250,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +261,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +272,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +283,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +294,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +305,6 @@ exports["lang:fr"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'), '1 01 1er', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '1 01 1er', "Jan  8 2012 should be week 1");
index 08e42da2414123782800bfea235b1c89bb171a5f..5605073b5d82485e6bc930ae95ddef416a467aeb 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:gl"] = {
     },
 
     "parse" : function (test) {
-
         var tests = "Xaneiro Xan._Febreiro Feb._Marzo Mar._Abril Abr._Maio Mai._Xuño Xuñ._Xullo Xul._Agosto Ago._Setembro Set._Outubro Out._Novembro Nov._Decembro Dec.".split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:gl"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1º', '1º');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2º', '2º');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3º', '3º');
@@ -79,7 +77,6 @@ exports["lang:gl"] = {
     },
 
     "format month" : function (test) {
-
         var expected = "Xaneiro Xan._Febreiro Feb._Marzo Mar._Abril Abr._Maio Mai._Xuño Xuñ._Xullo Xul._Agosto Ago._Setembro Set._Outubro Out._Novembro Nov._Decembro Dec.".split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -88,7 +85,6 @@ exports["lang:gl"] = {
     },
 
     "format week" : function (test) {
-
         var expected = "Domingo Dom. Do_Luns Lun. Lu_Martes Mar. Ma_Mércores Mér. Mé_Xoves Xov. Xo_Venres Ven. Ve_Sábado Sáb. Sá".split("_"),
         i;
         for (i = 0; i < expected.length; i++) {
@@ -98,7 +94,6 @@ exports["lang:gl"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "uns segundos", "44 seconds = a few seconds");
@@ -133,7 +128,6 @@ exports["lang:gl"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "nuns segundos",  "prefix");
         test.equal(moment(0).from(30000), "hai uns segundos", "suffix");
         test.done();
@@ -151,7 +145,6 @@ exports["lang:gl"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                         "hoxe ás 2:00",     "today at the same time");
@@ -165,7 +158,6 @@ exports["lang:gl"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -180,7 +172,6 @@ exports["lang:gl"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -194,7 +185,6 @@ exports["lang:gl"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -210,7 +200,6 @@ exports["lang:gl"] = {
     },
 
     "regression tests" : function (test) {
-
         var lastWeek = moment().subtract({d: 4}).hours(1);
         test.equal(lastWeek.calendar(), lastWeek.format('[o] dddd [pasado a] LT'), "1 o'clock bug");
 
@@ -221,7 +210,6 @@ exports["lang:gl"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -232,7 +220,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -243,7 +230,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -255,7 +241,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -267,7 +252,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -279,7 +263,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -291,7 +274,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -303,7 +285,6 @@ exports["lang:gl"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1º', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1º', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2º', "Jan  2 2012 should be week 2");
index 288d2683fa31f44ebc1865a857a7e401d89c91e0..4827b8e0dc1e4830d339975098711b422a1e59f1 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:he"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'ינואר ינו׳_פברואר פבר׳_מרץ מרץ_אפריל אפר׳_מאי מאי_יוני יוני_יולי יולי_אוגוסט אוג׳_ספטמבר ספט׳_אוקטובר אוק׳_נובמבר נוב׳_דצמבר דצמ׳'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:he"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'ראשון, פברואר 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'א׳, 3PM'],
@@ -140,7 +138,6 @@ exports["lang:he"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "היום ב־02:00",     "today at the same time");
@@ -153,7 +150,6 @@ exports["lang:he"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -167,7 +163,6 @@ exports["lang:he"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -181,7 +176,6 @@ exports["lang:he"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -201,7 +195,6 @@ exports["lang:he"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -212,7 +205,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -224,7 +216,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -236,7 +227,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -248,7 +238,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -260,7 +249,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -272,7 +260,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -283,7 +270,6 @@ exports["lang:he"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
index 456207ad5714d827a8bc0d2ef8e920ded8d6898e..c2e258a2f4fcb4ed9f21100d929e8c5e4688c8bc 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:hi"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'जनवरी जन._फ़रवरी फ़र._मार्च मार्च_अप्रैल अप्रै._मई मई_जून जून_जुलाई जुल._अगस्त अग._सितम्बर सित._अक्टूबर अक्टू._नवम्बर नव._दिसम्बर दिस.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:hi"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, a h:mm:ss बजे',  'रविवार, १४ फ़रवरी २०१०, दोपहर ३:२५:५० बजे'],
                 ['ddd, a h बजे',                       'रवि, दोपहर ३ बजे'],
@@ -73,7 +71,6 @@ exports["lang:hi"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '१', '१');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '२', '२');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '३', '३');
@@ -112,7 +109,6 @@ exports["lang:hi"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'जनवरी जन._फ़रवरी फ़र._मार्च मार्च_अप्रैल अप्रै._मई मई_जून जून_जुलाई जुल._अगस्त अग._सितम्बर सित._अक्टूबर अक्टू._नवम्बर नव._दिसम्बर दिस.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -121,7 +117,6 @@ exports["lang:hi"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'रविवार रवि र_सोमवार सोम सो_मंगलवार मंगल मं_बुधवार बुध बु_गुरूवार गुरू गु_शुक्रवार शुक्र शु_शनिवार शनि श'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -130,7 +125,6 @@ exports["lang:hi"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "कुछ ही क्षण", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "एक मिनट",      "45 seconds = a minute");
@@ -181,7 +175,6 @@ exports["lang:hi"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "आज रात २:०० बजे",     "today at the same time");
@@ -194,7 +187,6 @@ exports["lang:hi"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -208,7 +200,6 @@ exports["lang:hi"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -239,7 +230,6 @@ exports["lang:hi"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  2, 30]).format('a'), "रात", "before dawn");
         test.equal(moment([2011, 2, 23,  9, 30]).format('a'), "सुबह", "morning");
         test.equal(moment([2011, 2, 23, 14, 30]).format('a'), "दोपहर", "during day");
@@ -261,7 +251,6 @@ exports["lang:hi"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -272,7 +261,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -284,7 +272,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -296,7 +283,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -308,7 +294,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -320,7 +305,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -332,7 +316,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -343,7 +326,6 @@ exports["lang:hi"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '१ ०१ १', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '१ ०१ १', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '२ ०२ २', "Jan  8 2012 should be week 2");
index 4eb294ef4f3e6dbbdfc8c9b9c5dc79f4d9deb4ed..a08687c1ae67763d2a97c01bc742d698f73f00aa 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:hr"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'sječanj sje._veljača vel._ožujak ožu._travanj tra._svibanj svi._lipanj lip._srpanj srp._kolovoz kol._rujan ruj._listopad lis._studeni stu._prosinac pro.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -177,7 +176,6 @@ exports["lang:hr"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "danas u 2:00",  "today at the same time");
@@ -190,7 +188,6 @@ exports["lang:hr"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -221,7 +218,6 @@ exports["lang:hr"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -251,7 +247,6 @@ exports["lang:hr"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -271,7 +266,6 @@ exports["lang:hr"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -282,7 +276,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -293,7 +286,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -305,7 +297,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -317,7 +308,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -329,7 +319,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -341,7 +330,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -353,7 +341,6 @@ exports["lang:hr"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index 62748c044400d5753343469f0d31f3dfea70197e..ec9ac972be69c3408a90bfd4c8048f6d3c5c1f56 100644 (file)
@@ -19,7 +19,6 @@ exports["lang:hu"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'január jan_február feb_március márc_április ápr_május máj_június jún_július júl_augusztus aug_szeptember szept_október okt_november nov_december dec'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -40,7 +39,6 @@ exports["lang:hu"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, HH:mm:ss',      'vasárnap, február 14. 2010, 15:25:50'],
                 ['ddd, HH',                            'vas, 15'],
@@ -72,7 +70,6 @@ exports["lang:hu"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  0,  0]).format('a'), "de", "am");
         test.equal(moment([2011, 2, 23, 11, 59]).format('a'), "de", "am");
         test.equal(moment([2011, 2, 23, 12,  0]).format('a'), "du", "pm");
@@ -87,7 +84,6 @@ exports["lang:hu"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -194,7 +190,6 @@ exports["lang:hu"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "ma 2:00-kor",     "today at the same time");
@@ -207,7 +202,6 @@ exports["lang:hu"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m, days = 'vasárnap_hétfőn_kedden_szerdán_csütörtökön_pénteken_szombaton'.split('_');
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -222,7 +216,6 @@ exports["lang:hu"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m, days = 'vasárnap_hétfőn_kedden_szerdán_csütörtökön_pénteken_szombaton'.split('_');
 
         for (i = 2; i < 7; i++) {
@@ -238,7 +231,6 @@ exports["lang:hu"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -257,7 +249,6 @@ exports["lang:hu"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -268,7 +259,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -279,7 +269,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -291,7 +280,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -303,7 +291,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -315,7 +302,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -327,7 +313,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -339,7 +324,6 @@ exports["lang:hu"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index b516241b2522f7e7efa3ec2efde108318111e37f..621a3edd7d55a507c09a3253c9ff67cd355c209d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:hy-am"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'հունվար հնվ_փետրվար փտր_մարտ մրտ_ապրիլ ապր_մայիս մյս_հունիս հնս_հուլիս հլս_օգոստոս օգս_սեպտեմբեր սպտ_հոկտեմբեր հկտ_նոյեմբեր նմբ_դեկտեմբեր դկտ'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -45,7 +44,6 @@ exports["lang:hy-am"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, HH:mm:ss',       'կիրակի, 14 փետրվարի 2010, 15:25:50'],
                 ['ddd, h A',                           'կրկ, 3 ցերեկվա'],
@@ -79,7 +77,6 @@ exports["lang:hy-am"] = {
     },
 
     "format meridiem" : function (test) {
-
         test.equal(moment([2012, 11, 28, 0, 0]).format("A"), "գիշերվա", "night");
         test.equal(moment([2012, 11, 28, 3, 59]).format("A"), "գիշերվա", "night");
         test.equal(moment([2012, 11, 28, 4, 0]).format("A"), "առավոտվա", "morning");
@@ -93,7 +90,6 @@ exports["lang:hy-am"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1-ին', '1-ին');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2-րդ', '2-րդ');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3-րդ', '3-րդ');
@@ -132,7 +128,6 @@ exports["lang:hy-am"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'հունվար հնվ_փետրվար փտր_մարտ մրտ_ապրիլ ապր_մայիս մյս_հունիս հնս_հուլիս հլս_օգոստոս օգս_սեպտեմբեր սպտ_հոկտեմբեր հկտ_նոյեմբեր նմբ_դեկտեմբեր դկտ'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -141,7 +136,6 @@ exports["lang:hy-am"] = {
     },
 
     "format month case" : function (test) {
-
         var months = {
             'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
             'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
@@ -154,7 +148,6 @@ exports["lang:hy-am"] = {
     },
 
     "format month short case" : function (test) {
-
         var monthsShort = {
             'nominative': 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
             'accusative': 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_')
@@ -167,7 +160,6 @@ exports["lang:hy-am"] = {
     },
 
     "format month case with escaped symbols" : function (test) {
-
         var months = {
             'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
             'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
@@ -182,7 +174,6 @@ exports["lang:hy-am"] = {
     },
 
     "format month short case with escaped symbols" : function (test) {
-
         var monthsShort = {
             'nominative': 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
             'accusative': 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_')
@@ -197,7 +188,6 @@ exports["lang:hy-am"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'կիրակի կրկ կրկ_երկուշաբթի երկ երկ_երեքշաբթի երք երք_չորեքշաբթի չրք չրք_հինգշաբթի հնգ հնգ_ուրբաթ ուրբ ուրբ_շաբաթ շբթ շբթ'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -253,7 +243,6 @@ exports["lang:hy-am"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "այսօր 02:00",   "today at the same time");
@@ -266,7 +255,6 @@ exports["lang:hy-am"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         function makeFormat(d) {
             return 'dddd [օրը ժամը] LT';
@@ -284,7 +272,6 @@ exports["lang:hy-am"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -303,7 +290,6 @@ exports["lang:hy-am"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -323,7 +309,6 @@ exports["lang:hy-am"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -334,7 +319,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -345,7 +329,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -357,7 +340,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -369,7 +351,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -381,7 +362,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -393,7 +373,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -405,7 +384,6 @@ exports["lang:hy-am"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-ին', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-ին', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-րդ', "Jan  2 2012 should be week 2");
index 86b5c59e0991a9628bf2851f2424df0ca5309275..edde19b86066e2d097a7c9fc83170cace9d4506b 100644 (file)
@@ -138,7 +138,6 @@ exports["lang:id"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hari ini pukul 02.00", "today at the same time");
@@ -151,7 +150,6 @@ exports["lang:id"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -165,7 +163,6 @@ exports["lang:id"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -179,7 +176,6 @@ exports["lang:id"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -198,7 +194,6 @@ exports["lang:id"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -209,7 +204,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -220,7 +214,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -232,7 +225,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -244,7 +236,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -256,7 +247,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -268,7 +258,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -280,7 +269,6 @@ exports["lang:id"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2', "Jan  2 2012 should be week 2");
index bd20b3731428d4af605df5137d3fb453a92463c6..81b68873112d1d3ecd23851f886aa99b3b6c7a76 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:is"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'janúar jan_febrúar feb_mars mar_apríl apr_maí maí_júní jún_júlí júl_ágúst ágú_september sep_október okt_nóvember nóv_desember des'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:is"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, h:mm:ss a',      'sunnudagur, 14. febrúar 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'sun, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:is"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:is"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'janúar jan_febrúar feb_mars mar_apríl apr_maí maí_júní jún_júlí júl_ágúst ágú_september sep_október okt_nóvember nóv_desember des'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:is"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'sunnudagur sun Su_mánudagur mán Má_þriðjudagur þri Þr_miðvikudagur mið Mi_fimmtudagur fim Fi_föstudagur fös Fö_laugardagur lau La'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:is"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "nokkrar sekúndur", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "mínúta",      "45 seconds = a minute");
@@ -188,7 +182,6 @@ exports["lang:is"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "í dag kl. 2:00",     "today at the same time");
@@ -201,7 +194,6 @@ exports["lang:is"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -215,7 +207,6 @@ exports["lang:is"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -230,7 +221,6 @@ exports["lang:is"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -250,7 +240,6 @@ exports["lang:is"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -261,7 +250,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -272,7 +260,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -284,7 +271,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -296,7 +282,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -308,7 +293,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -320,7 +304,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -332,7 +315,6 @@ exports["lang:is"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1.', "Jan  8 2012 should be week 1");
@@ -344,7 +326,6 @@ exports["lang:is"] = {
 
     "returns the name of the language" : function (test) {
         if (typeof module !== 'undefined' && module.exports) {
-
             test.equal(require('../../lang/is'), 'is', "module should export is");
         }
 
index eafae2338bbe8e48e6900677e8e8d82178339a3d..fa4f796f19997bd6ad9b326f7d3ec27c81770bf5 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:it"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'gennaio gen_febbraio feb_marzo mar_aprile apr_maggio mag_giugno giu_luglio lug_agosto ago_settembre set_ottobre ott_novembre nov_dicembre dic'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:it"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Domenica, febbraio 14º 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Dom, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:it"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1º', '1º');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2º', '2º');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3º', '3º');
@@ -113,7 +110,6 @@ exports["lang:it"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'gennaio gen_febbraio feb_marzo mar_aprile apr_maggio mag_giugno giu_luglio lug_agosto ago_settembre set_ottobre ott_novembre nov_dicembre dic'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:it"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Domenica Dom D_Lunedì Lun L_Martedì Mar Ma_Mercoledì Mer Me_Giovedì Gio G_Venerdì Ven V_Sabato Sab S'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:it"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "alcuni secondi",    "44 seconds = seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "un minuto",   "45 seconds = a minute");
@@ -165,21 +159,18 @@ exports["lang:it"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "in alcuni secondi", "prefix");
         test.equal(moment(0).from(30000), "alcuni secondi fa", "suffix");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "in alcuni secondi", "in seconds");
         test.equal(moment().add({d: 5}).fromNow(), "tra 5 giorni", "in 5 days");
         test.done();
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Oggi alle 02:00",     "today at the same time");
@@ -192,7 +183,6 @@ exports["lang:it"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -206,7 +196,6 @@ exports["lang:it"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -220,7 +209,6 @@ exports["lang:it"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -239,7 +227,6 @@ exports["lang:it"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -250,7 +237,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -261,7 +247,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -273,7 +258,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -285,7 +269,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -297,7 +280,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -309,7 +291,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -321,7 +302,6 @@ exports["lang:it"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52º', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1º', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1º', "Jan  8 2012 should be week 1");
index 6b71da6e5d967be150dc88788a6f4db0eed1c91e..73ccd4d5a631246a0ee471aabb7faeb7dd7a3b1d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ja"] = {
     },
 
     "parse" : function (test) {
-
         var tests = '1月 1月_2月 2月_3月 3月_4月 4月_5月 5月_6月 6月_7月 7月_8月 8月_9月 9月_10月 10月_11月 11月_12月 12月'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:ja"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, a h:mm:ss',      '日曜日, 2月 14 2010, 午後 3:25:50'],
                 ['ddd, Ah',                            '日, 午後3'],
@@ -74,7 +72,6 @@ exports["lang:ja"] = {
     },
 
     "format month" : function (test) {
-
         var expected = '1月 1月_2月 2月_3月 3月_4月 4月_5月 5月_6月 6月_7月 7月_8月 8月_9月 9月_10月 10月_11月 11月_12月 12月'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -83,7 +80,6 @@ exports["lang:ja"] = {
     },
 
     "format week" : function (test) {
-
         var expected = '日曜日 日 日_月曜日 月 月_火曜日 火 火_水曜日 水 水_木曜日 木 木_金曜日 金 金_土曜日 土 土'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -92,7 +88,6 @@ exports["lang:ja"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "数秒",   "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "1分", "45 seconds = a minute");
@@ -143,7 +138,6 @@ exports["lang:ja"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "今日 午前2時0分",     "today at the same time");
@@ -156,7 +150,6 @@ exports["lang:ja"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -170,7 +163,6 @@ exports["lang:ja"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -184,7 +176,6 @@ exports["lang:ja"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -203,7 +194,6 @@ exports["lang:ja"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -214,7 +204,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -226,7 +215,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -238,7 +226,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -250,7 +237,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -262,7 +248,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -274,7 +259,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -285,7 +269,6 @@ exports["lang:ja"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
index 5136c7bdc17c2042010b37434e444d6837f34662..03f5783e2b30f4061680fbaff77b87f7884d045b 100644 (file)
@@ -19,7 +19,6 @@ exports["lang:ka"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'იანვარი იან_თებერვალი თებ_მარტი მარ_აპრილი აპრ_მაისი მაი_ივნისი ივნ_ივლისი ივლ_აგვისტო აგვ_სექტემბერი სექ_ოქტომბერი ოქტ_ნოემბერი ნოე_დეკემბერი დეკ'.split("_");
 
@@ -43,7 +42,6 @@ exports["lang:ka"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a', 'კვირა, თებერვალი მე-14 2010, 3:25:50 pm'],
                 ['ddd, hA',                       'კვი, 3PM'],
@@ -79,7 +77,6 @@ exports["lang:ka"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'),  '1-ლი',  '1-ლი');
         test.equal(moment([2011, 0, 2]).format('DDDo'),  'მე-2',  'მე-2');
         test.equal(moment([2011, 0, 3]).format('DDDo'),  'მე-3',  'მე-3');
@@ -122,7 +119,6 @@ exports["lang:ka"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'იანვარი იან_თებერვალი თებ_მარტი მარ_აპრილი აპრ_მაისი მაი_ივნისი ივნ_ივლისი ივლ_აგვისტო აგვ_სექტემბერი სექ_ოქტომბერი ოქტ_ნოემბერი ნოე_დეკემბერი დეკ'.split("_");
 
@@ -133,7 +129,6 @@ exports["lang:ka"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'კვირა კვი კვ_ორშაბათი ორშ ორ_სამშაბათი სამ სა_ოთხშაბათი ოთხ ოთ_ხუთშაბათი ხუთ ხუ_პარასკევი პარ პა_შაბათი შაბ შა'.split("_");
 
@@ -145,7 +140,6 @@ exports["lang:ka"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}),  true), "რამდენიმე წამი", "44 წამი  = რამდენიმე წამი");
@@ -181,7 +175,6 @@ exports["lang:ka"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "რამდენიმე წამში",     "ში სუფიქსი");
         test.equal(moment(0).from(30000), "რამდენიმე წამის წინ", "წინ სუფიქსი");
 
@@ -189,14 +182,12 @@ exports["lang:ka"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "რამდენიმე წამის წინ", "უნდა აჩვენოს როგორც წარსული");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "რამდენიმე წამში", "რამდენიმე წამში");
         test.equal(moment().add({d: 5}).fromNow(), "5 დღეში", "5 დღეში");
 
@@ -204,7 +195,6 @@ exports["lang:ka"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "დღეს 2:00 AM-ზე",  "დღეს ამავე დროს");
@@ -218,7 +208,6 @@ exports["lang:ka"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -232,7 +221,6 @@ exports["lang:ka"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -246,7 +234,6 @@ exports["lang:ka"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -263,7 +250,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "დეკ 26 2011 უნდა იყოს კვირა 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "იან  1 2012 უნდა იყოს კვირა 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "იან  2 2012 უნდა იყოს კვირა 2");
@@ -274,7 +260,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "იან  1 2007 უნდა იყოს კვირა 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "იან  7 2007 უნდა იყოს კვირა 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "იან  8 2007 უნდა იყოს კვირა 2");
@@ -285,7 +270,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "დეკ 31 2007 უნდა იყოს კვირა 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "იან  1 2008 უნდა იყოს კვირა 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "იან  6 2008 უნდა იყოს კვირა 1");
@@ -297,7 +281,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "დეკ 30 2002 უნდა იყოს კვირა 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "იან  1 2003 უნდა იყოს კვირა 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "იან  5 2003 უნდა იყოს კვირა 1");
@@ -309,7 +292,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "დეკ 29 2008 უნდა იყოს კვირა 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "იან  1 2009 უნდა იყოს კვირა 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "იან  4 2009 უნდა იყოს კვირა 1");
@@ -321,7 +303,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "დეკ 28 2009 უნდა იყოს კვირა 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "იან  1 2010 უნდა იყოს კვირა 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "იან  3 2010 უნდა იყოს კვირა 1");
@@ -333,7 +314,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "დეკ 27 2010 უნდა იყოს კვირა 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "იან  1 2011 უნდა იყოს კვირა 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "იან  2 2011 უნდა იყოს კვირა 1");
@@ -345,7 +325,6 @@ exports["lang:ka"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-ლი', "დეკ 26 2011 უნდა იყოს კვირა 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-ლი', "იან  1 2012 უნდა იყოს კვირა 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 მე-2', "იან  2 2012 უნდა იყოს კვირა 2");
index 0c37e3ba779610721dbe093abb9d77d68d9d380f..cd4ac96f4f87a350ff51a006ff72e57dab1113ef 100644 (file)
@@ -181,7 +181,6 @@ exports["lang:km"] = {
     },
 
     "calendar day": function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(), "ថ្ងៃនៈ ម៉ោង 02:00", "today at the same time");
@@ -204,7 +203,6 @@ exports["lang:km"] = {
     },
 
     "calendar next week": function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({
@@ -220,7 +218,6 @@ exports["lang:km"] = {
     },
 
     "calendar last week": function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -237,7 +234,6 @@ exports["lang:km"] = {
     },
 
     "calendar all else": function (test) {
-
         var weeksAgo = moment().subtract({
                 w: 1
             }),
@@ -265,7 +261,6 @@ exports["lang:km"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday": function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(), 1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(), 1, "Jan  8 2012 should be week 1");
@@ -276,7 +271,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting monday": function (test) {
-
         test.equal(moment([2007, 0, 1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(), 1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(), 2, "Jan  8 2007 should be week 2");
@@ -287,7 +281,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting tuesday": function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008, 0, 1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008, 0, 6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -299,7 +292,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting wednesday": function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003, 0, 1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003, 0, 5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -311,7 +303,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting thursday": function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009, 0, 1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009, 0, 4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -323,7 +314,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting friday": function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010, 0, 1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010, 0, 3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -335,7 +325,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting saturday": function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011, 0, 1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011, 0, 2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -347,7 +336,6 @@ exports["lang:km"] = {
     },
 
     "weeks year starting sunday formatted": function (test) {
-
         test.equal(moment([2012, 0, 1]).format('w ww wo'), '52 52 52', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).format('w ww wo'), '1 01 1', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).format('w ww wo'), '1 01 1', "Jan  8 2012 should be week 1");
index 138c7a21e57359f63323de72a9f3e8a8c541c06c..c8967c26d0b0b5abd5db7f0b69f2ecb634ae72b2 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ko"] = {
     },
 
     "parse" : function (test) {
-
         var tests = '1월 1월_2월 2월_3월 3월_4월 4월_5월 5월_6월 6월_7월 7월_8월 8월_9월 9월_10월 10월_11월 11월_12월 12월'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -78,7 +77,6 @@ exports["lang:ko"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['YYYY년 MMMM Do dddd a h:mm:ss',      '2010년 2월 14일 일요일 오후 3:25:50'],
                 ['ddd A h',                            '일 오후 3'],
@@ -112,7 +110,6 @@ exports["lang:ko"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1일', '1일');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2일', '2일');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3일', '3일');
@@ -151,7 +148,6 @@ exports["lang:ko"] = {
     },
 
     "format month" : function (test) {
-
         var expected = '1월 1월_2월 2월_3월 3월_4월 4월_5월 5월_6월 6월_7월 7월_8월 8월_9월 9월_10월 10월_11월 11월_12월 12월'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -160,7 +156,6 @@ exports["lang:ko"] = {
     },
 
     "format week" : function (test) {
-
         var expected = '일요일 일 일_월요일 월 월_화요일 화 화_수요일 수 수_목요일 목 목_금요일 금 금_토요일 토 토'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -169,7 +164,6 @@ exports["lang:ko"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "몇초", "44초 = 몇초");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "일분",      "45초 = 일분");
@@ -203,7 +197,6 @@ exports["lang:ko"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "몇초 후",  "prefix");
         test.equal(moment(0).from(30000), "몇초 전", "suffix");
 
@@ -211,14 +204,12 @@ exports["lang:ko"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "몇초 전",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "몇초 후", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "5일 후", "in 5 days");
 
@@ -226,8 +217,6 @@ exports["lang:ko"] = {
     },
 
     "calendar day" : function (test) {
-
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "오늘 오전 2시 00분",     "today at the same time");
@@ -240,7 +229,6 @@ exports["lang:ko"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -254,7 +242,6 @@ exports["lang:ko"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -268,7 +255,6 @@ exports["lang:ko"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -288,7 +274,6 @@ exports["lang:ko"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -299,7 +284,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -311,7 +295,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -323,7 +306,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -335,7 +317,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -347,7 +328,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -359,7 +339,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -370,7 +349,6 @@ exports["lang:ko"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1일', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1일', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2일', "Jan  8 2012 should be week 2");
index b693e158154932cd47ba7c05250717ebda3298a6..f28b91d311be9a2d29f5a85f2ff64bbf204f7ba6 100644 (file)
@@ -19,7 +19,6 @@ exports["lang:lb"] = {
     },
 
     "parse": function (test) {
-
         var tests = 'Januar Jan._Februar Febr._Mäerz Mrz._Abrëll Abr._Mee Mee_Juni Jun._Juli Jul._August Aug._September Sept._Oktober Okt._November Nov._Dezember Dez.'.split("_"), i;
 
         function equalTest(input, mmm, i) {
@@ -41,7 +40,6 @@ exports["lang:lb"] = {
     },
 
     "format": function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, HH:mm:ss', 'Sonndeg, 14. Februar 2010, 15:25:50'],
                 ['ddd, HH:mm', 'So., 15:25'],
@@ -75,7 +73,6 @@ exports["lang:lb"] = {
     },
 
     "format month": function (test) {
-
         var expected = 'Januar Jan._Februar Febr._Mäerz Mrz._Abrëll Abr._Mee Mee_Juni Jun._Juli Jul._August Aug._September Sept._Oktober Okt._November Nov._Dezember Dez.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -84,7 +81,6 @@ exports["lang:lb"] = {
     },
 
     "format week": function (test) {
-
         var expected = 'Sonndeg So. So_Méindeg Mé. Mé_Dënschdeg Dë. Dë_Mëttwoch Më. Më_Donneschdeg Do. Do_Freideg Fr. Fr_Samschdeg Sa. Sa'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -149,7 +145,6 @@ exports["lang:lb"] = {
     },
 
     "calendar last week": function (test) {
-
         var i, m, weekday, datestring;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
index 2b03b3a1f4029d21183432e9b831dd6623bfbf1d..856a051deac28a150ef13472fd82d7e422501603 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:lt"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'sausio sau_vasario vas_kovo kov_balandžio bal_gegužės geg_birželio bir_liepos lie_rugpjūčio rgp_rugsėjo rgs_spalio spa_lapkričio lap_gruodžio grd'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:lt"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, h:mm:ss a',      'sekmadienis, 14-oji vasario 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Sek, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:lt"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1-oji', '1-oji');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2-oji', '2-oji');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3-oji', '3-oji');
@@ -113,7 +110,6 @@ exports["lang:lt"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'sausio sau_vasario vas_kovo kov_balandžio bal_gegužės geg_birželio bir_liepos lie_rugpjūčio rgp_rugsėjo rgs_spalio spa_lapkričio lap_gruodžio grd'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:lt"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'sekmadienis Sek S_pirmadienis Pir P_antradienis Ant A_trečiadienis Tre T_ketvirtadienis Ket K_penktadienis Pen Pn_šeštadienis Šeš Š'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -142,7 +137,6 @@ exports["lang:lt"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "kelios sekundės", "44 seconds = seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minutė",          "45 seconds = a minute");
@@ -200,7 +194,6 @@ exports["lang:lt"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Šiandien 02:00",     "today at the same time");
@@ -213,7 +206,6 @@ exports["lang:lt"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -227,7 +219,6 @@ exports["lang:lt"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -259,7 +250,6 @@ exports["lang:lt"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -270,7 +260,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -281,7 +270,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -293,7 +281,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -305,7 +292,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -317,7 +303,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -329,7 +314,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -341,7 +325,6 @@ exports["lang:lt"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52-oji', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1-oji', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1-oji', "Jan  8 2012 should be week 1");
index fc70b8cc782287076cfa27d42b24e8860d515660..bbb57cfe3ae8579f8d0d995c094a3d3c00d28f5b 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:lv"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'janvāris jan_februāris feb_marts mar_aprīlis apr_maijs mai_jūnijs jūn_jūlijs jūl_augusts aug_septembris sep_oktobris okt_novembris nov_decembris dec'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:lv"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, h:mm:ss a',      'svētdiena, 14. februāris 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Sv, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:lv"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:lv"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'janvāris jan_februāris feb_marts mar_aprīlis apr_maijs mai_jūnijs jūn_jūlijs jūl_augusts aug_septembris sep_oktobris okt_novembris nov_decembris dec'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:lv"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'svētdiena Sv Sv_pirmdiena P P_otrdiena O O_trešdiena T T_ceturtdiena C C_piektdiena Pk Pk_sestdiena S S'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:lv"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "dažas sekundes",    "44 seconds = seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minūti",      "45 seconds = a minute");
@@ -182,7 +176,6 @@ exports["lang:lv"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Šodien pulksten 02:00",     "today at the same time");
@@ -195,7 +188,6 @@ exports["lang:lv"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -209,7 +201,6 @@ exports["lang:lv"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -241,7 +232,6 @@ exports["lang:lv"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +242,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +252,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +263,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +274,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +285,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +296,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +307,6 @@ exports["lang:lv"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1.', "Jan  8 2012 should be week 1");
index d756d54341a9e10e368b422a7bd9a78be13d24a1..b737f140d325d57370e9abc68765e1270fd9ebc6 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:mk"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Денес во 2:00",  "today at the same time");
@@ -189,7 +188,6 @@ exports["lang:mk"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +201,6 @@ exports["lang:mk"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -250,7 +247,6 @@ exports["lang:mk"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -261,7 +257,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -272,7 +267,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -284,7 +278,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -296,7 +289,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -308,7 +300,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -320,7 +311,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -332,7 +322,6 @@ exports["lang:mk"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-ви', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-ви', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-ри', "Jan  2 2012 should be week 2");
index b07f308ecaafcdba87135875490e493134491947..2a010f6bc74080d08f6dd241567308a639ecdb9d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ml"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'ജനുവരി ജനു._ഫെബ്രുവരി ഫെബ്രു._മാർച്ച് മാർ._ഏപ്രിൽ ഏപ്രി._മേയ് മേയ്_ജൂൺ ജൂൺ_ജൂലൈ ജൂലൈ._ഓഗസ്റ്റ് ഓഗ._സെപ്റ്റംബർ സെപ്റ്റ._ഒക്ടോബർ ഒക്ടോ._നവംബർ നവം._ഡിസംബർ ഡിസം.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:ml"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, a h:mm:ss -നു',  'ഞായറാഴ്ച, 14 ഫെബ്രുവരി 2010, ഉച്ച കഴിഞ്ഞ് 3:25:50 -നു'],
                 ['ddd, a h -നു',                       'ഞായർ, ഉച്ച കഴിഞ്ഞ് 3 -നു'],
@@ -73,7 +71,6 @@ exports["lang:ml"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -112,7 +109,6 @@ exports["lang:ml"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'ജനുവരി ജനു._ഫെബ്രുവരി ഫെബ്രു._മാർച്ച് മാർ._ഏപ്രിൽ ഏപ്രി._മേയ് മേയ്_ജൂൺ ജൂൺ_ജൂലൈ ജൂലൈ._ഓഗസ്റ്റ് ഓഗ._സെപ്റ്റംബർ സെപ്റ്റ._ഒക്ടോബർ ഒക്ടോ._നവംബർ നവം._ഡിസംബർ ഡിസം.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -121,7 +117,6 @@ exports["lang:ml"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'ഞായറാഴ്ച ഞായർ ഞാ_തിങ്കളാഴ്ച തിങ്കൾ തി_ചൊവ്വാഴ്ച ചൊവ്വ ചൊ_ബുധനാഴ്ച ബുധൻ ബു_വ്യാഴാഴ്ച വ്യാഴം വ്യാ_വെള്ളിയാഴ്ച വെള്ളി വെ_ശനിയാഴ്ച ശനി ശ'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -130,7 +125,6 @@ exports["lang:ml"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "അൽപ നിമിഷങ്ങൾ", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "ഒരു മിനിറ്റ്",      "45 seconds = a minute");
@@ -181,7 +175,6 @@ exports["lang:ml"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "ഇന്ന് രാത്രി 2:00 -നു",     "today at the same time");
@@ -194,7 +187,6 @@ exports["lang:ml"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -208,7 +200,6 @@ exports["lang:ml"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -239,7 +230,6 @@ exports["lang:ml"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  2, 30]).format('a'), "രാത്രി", "before dawn");
         test.equal(moment([2011, 2, 23,  9, 30]).format('a'), "രാവിലെ", "morning");
         test.equal(moment([2011, 2, 23, 14, 30]).format('a'), "ഉച്ച കഴിഞ്ഞ്", "during day");
@@ -261,7 +251,6 @@ exports["lang:ml"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -272,7 +261,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -284,7 +272,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -296,7 +283,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -308,7 +294,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -320,7 +305,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -332,7 +316,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -343,7 +326,6 @@ exports["lang:ml"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
index db6d094c65a54c2301f3828ddf6c1b8773bafbd9..4f6fe3922a1c17a4c066a0822b19d31dee1128d5 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:mr"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'जानेवारी जाने._फेब्रुवारी फेब्रु._मार्च मार्च._एप्रिल एप्रि._मे मे._जून जून._जुलै जुलै._ऑगस्ट ऑग._सप्टेंबर सप्टें._ऑक्टोबर ऑक्टो._नोव्हेंबर नोव्हें._डिसेंबर डिसें.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:mr"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, a h:mm:ss वाजता', 'रविवार, १४ फेब्रुवारी २०१०, दुपारी ३:२५:५० वाजता'],
                 ['ddd, a h वाजता',                       'रवि, दुपारी ३ वाजता'],
@@ -73,7 +71,6 @@ exports["lang:mr"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '१', '१');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '२', '२');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '३', '३');
@@ -112,7 +109,6 @@ exports["lang:mr"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'जानेवारी जाने._फेब्रुवारी फेब्रु._मार्च मार्च._एप्रिल एप्रि._मे मे._जून जून._जुलै जुलै._ऑगस्ट ऑग._सप्टेंबर सप्टें._ऑक्टोबर ऑक्टो._नोव्हेंबर नोव्हें._डिसेंबर डिसें.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -121,7 +117,6 @@ exports["lang:mr"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'रविवार रवि र_सोमवार सोम सो_मंगळवार मंगळ मं_बुधवार बुध बु_गुरूवार गुरू गु_शुक्रवार शुक्र शु_शनिवार शनि श'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -130,7 +125,6 @@ exports["lang:mr"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "सेकंद", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "एक मिनिट",      "45 seconds = a minute");
@@ -181,7 +175,6 @@ exports["lang:mr"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "आज रात्री २:०० वाजता",     "today at the same time");
@@ -194,7 +187,6 @@ exports["lang:mr"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -208,7 +200,6 @@ exports["lang:mr"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -239,7 +230,6 @@ exports["lang:mr"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  2, 30]).format('a'), "रात्री", "before dawn");
         test.equal(moment([2011, 2, 23,  9, 30]).format('a'), "सकाळी", "morning");
         test.equal(moment([2011, 2, 23, 14, 30]).format('a'), "दुपारी", "during day");
@@ -261,7 +251,6 @@ exports["lang:mr"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -272,7 +261,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -284,7 +272,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -296,7 +283,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -308,7 +294,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -320,7 +305,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -332,7 +316,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -343,7 +326,6 @@ exports["lang:mr"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '१ ०१ १', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '१ ०१ १', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '२ ०२ २', "Jan  8 2012 should be week 2");
index 3101d796f7320da462277704abd76872ce99f3ed..7298394897c0bed73c66eb7dd387fd7483547cf8 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ms-my"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'Januari Jan_Februari Feb_Mac Mac_April Apr_Mei Mei_Jun Jun_Julai Jul_Ogos Ogs_September Sep_Oktober Okt_November Nov_Disember Dis'.split("_");
 
@@ -44,7 +43,6 @@ exports["lang:ms-my"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Ahad, Februari 14 2010, 3:25:50 petang'],
                 ['ddd, hA',                            'Ahd, 3petang'],
@@ -80,7 +78,6 @@ exports["lang:ms-my"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -119,7 +116,6 @@ exports["lang:ms-my"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'Januari Jan_Februari Feb_Mac Mac_April Apr_Mei Mei_Jun Jun_Julai Jul_Ogos Ogs_September Sep_Oktober Okt_November Nov_Disember Dis'.split("_");
 
@@ -130,7 +126,6 @@ exports["lang:ms-my"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'Ahad Ahd Ah_Isnin Isn Is_Selasa Sel Sl_Rabu Rab Rb_Khamis Kha Km_Jumaat Jum Jm_Sabtu Sab Sb'.split("_");
 
@@ -142,7 +137,6 @@ exports["lang:ms-my"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "beberapa saat", "44 saat = beberapa saat");
@@ -178,7 +172,6 @@ exports["lang:ms-my"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "dalam beberapa saat",  "prefix");
         test.equal(moment(0).from(30000), "beberapa saat yang lepas", "suffix");
 
@@ -186,14 +179,12 @@ exports["lang:ms-my"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "beberapa saat yang lepas",  "waktu sekarang dari sekarang sepatutnya menunjukkan sebagai telah lepas");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "dalam beberapa saat", "dalam beberapa saat");
         test.equal(moment().add({d: 5}).fromNow(), "dalam 5 hari", "dalam 5 hari");
 
@@ -201,7 +192,6 @@ exports["lang:ms-my"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hari ini pukul 02.00",     "hari ini pada waktu yang sama");
@@ -215,7 +205,6 @@ exports["lang:ms-my"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -229,7 +218,6 @@ exports["lang:ms-my"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -243,7 +231,6 @@ exports["lang:ms-my"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -263,7 +250,6 @@ exports["lang:ms-my"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 sepatutnya minggu 1");
         test.equal(moment([2012, 0,  7]).week(), 2, "Jan  7 2012 sepatutnya minggu 2");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 sepatutnya minggu 2");
@@ -274,7 +260,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 53, "Dec 31 2006 sepatutnya minggu 53");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 sepatutnya minggu 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 sepatutnya minggu 1");
@@ -286,7 +271,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 30]).week(), 52, "Dec 30 2007 sepatutnya minggu 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 sepatutnya minggu 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 sepatutnya minggu 1");
@@ -298,7 +282,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 52, "Dec 29 2002 sepatutnya minggu 52");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 sepatutnya minggu 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 sepatutnya minggu 1");
@@ -310,7 +293,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 52, "Dec 28 2008 sepatutnya minggu 52");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 sepatutnya minggu 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 sepatutnya minggu 1");
@@ -322,7 +304,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 52, "Dec 27 2009 sepatutnya minggu 52");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 sepatutnya minggu 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 sepatutnya minggu 1");
@@ -334,7 +315,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 52, "Dec 26 2010 sepatutnya minggu 52");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 sepatutnya minggu 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 sepatutnya minggu 1");
@@ -345,7 +325,6 @@ exports["lang:ms-my"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 sepatutnya minggu 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '2 02 2', "Jan  7 2012 sepatutnya minggu 2");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 sepatutnya minggu 2");
index 29837b74b28df1c2d82fab4de2be080f6b1fc4be..805219d3008644a0fcb6e40322f9519d7aa09c03 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:nb"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januar jan_februar feb_mars mars_april april_mai mai_juni juni_juli juli_august aug_september sep_oktober okt_november nov_desember des'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -41,7 +40,6 @@ exports["lang:nb"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'søndag, februar 14. 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'sø., 3PM'],
@@ -75,7 +73,6 @@ exports["lang:nb"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -114,7 +111,6 @@ exports["lang:nb"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'januar jan._februar feb._mars mars_april april_mai mai_juni juni_juli juli_august aug._september sep._oktober okt._november nov._desember des.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -123,7 +119,6 @@ exports["lang:nb"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'søndag sø. sø_mandag ma. ma_tirsdag ti. ti_onsdag on. on_torsdag to. to_fredag fr. fr_lørdag lø. lø'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -132,7 +127,6 @@ exports["lang:nb"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "noen sekunder", "44 sekunder = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "ett minutt",      "45 seconds = a minute");
@@ -183,7 +177,6 @@ exports["lang:nb"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "i dag kl. 2.00",     "today at the same time");
@@ -196,7 +189,6 @@ exports["lang:nb"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -210,7 +202,6 @@ exports["lang:nb"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -242,7 +233,6 @@ exports["lang:nb"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -253,7 +243,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -264,7 +253,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -276,7 +264,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -288,7 +275,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -300,7 +286,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -312,7 +297,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -324,7 +308,6 @@ exports["lang:nb"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1.', "Jan  8 2012 should be week 1");
index baec130b87ba57535c2322081c40979308d12995..1fa5f400ed92b114c7cb0641e29460cb85d406e7 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ne"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'जनवरी जन._फेब्रुवरी फेब्रु._मार्च मार्च_अप्रिल अप्रि._मई मई_जुन जुन_जुलाई जुलाई._अगष्ट अग._सेप्टेम्बर सेप्ट._अक्टोबर अक्टो._नोभेम्बर नोभे._डिसेम्बर डिसे.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:ne"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, aको h:mm:ss बजे',       'आइतबार, १४ फेब्रुवरी २०१०, बेलुकाको ३:२५:५० बजे'],
                 ['ddd, aको h बजे',                                                      'आइत., बेलुकाको ३ बजे'],
@@ -73,7 +71,6 @@ exports["lang:ne"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '१', '१');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '२', '२');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '३', '३');
@@ -112,7 +109,6 @@ exports["lang:ne"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'जनवरी जन._फेब्रुवरी फेब्रु._मार्च मार्च_अप्रिल अप्रि._मई मई_जुन जुन_जुलाई जुलाई._अगष्ट अग._सेप्टेम्बर सेप्ट._अक्टोबर अक्टो._नोभेम्बर नोभे._डिसेम्बर डिसे.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -121,7 +117,6 @@ exports["lang:ne"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'आइतबार आइत. आइ._सोमबार सोम. सो._मङ्गलबार मङ्गल. मङ्_बुधबार बुध. बु._बिहिबार बिहि. बि._शुक्रबार शुक्र. शु._शनिबार शनि. श.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -130,7 +125,6 @@ exports["lang:ne"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "केही समय", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "एक मिनेट",      "45 seconds = a minute");
@@ -181,7 +175,6 @@ exports["lang:ne"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "आज रातीको २:०० बजे",     "today at the same time");
@@ -194,7 +187,6 @@ exports["lang:ne"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -208,7 +200,6 @@ exports["lang:ne"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -238,7 +229,6 @@ exports["lang:ne"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  2, 30]).format('a'), "राती", "before dawn");
         test.equal(moment([2011, 2, 23,  9, 30]).format('a'), "बिहान", "morning");
         test.equal(moment([2011, 2, 23, 14, 30]).format('a'), "दिउँसो", "during day");
@@ -260,7 +250,6 @@ exports["lang:ne"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -271,7 +260,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -282,7 +270,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -294,7 +281,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -306,7 +292,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -318,7 +303,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -330,7 +314,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -342,7 +325,6 @@ exports["lang:ne"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '१ ०१ १', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '१ ०१ १', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '२ ०२ २', "Jan  2 2012 should be week 2");
index 7abdfc98a88269cb34e7d5ba8bd29b54992c396e..ac6b442399572d800670098e6b39c97a8966c50d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:nl"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januari jan._februari feb._maart mrt._april apr._mei mei._juni jun._juli jul._augustus aug._september sep._oktober okt._november nov._december dec.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:nl"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, HH:mm:ss',       'zondag, februari 14de 2010, 15:25:50'],
                 ['ddd, HH',                            'zo., 15'],
@@ -74,7 +72,6 @@ exports["lang:nl"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1ste', '1ste');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2de', '2de');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3de', '3de');
@@ -113,7 +110,6 @@ exports["lang:nl"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'januari jan._februari feb._maart mrt._april apr._mei mei_juni jun._juli jul._augustus aug._september sep._oktober okt._november nov._december dec.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:nl"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'zondag zo. Zo_maandag ma. Ma_dinsdag di. Di_woensdag wo. Wo_donderdag do. Do_vrijdag vr. Vr_zaterdag za. Za'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:nl"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "een paar seconden", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "één minuut",      "45 seconds = a minute");
@@ -182,7 +176,6 @@ exports["lang:nl"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "vandaag om 02:00",     "today at the same time");
@@ -195,7 +188,6 @@ exports["lang:nl"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -209,7 +201,6 @@ exports["lang:nl"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -223,7 +214,6 @@ exports["lang:nl"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -240,7 +230,6 @@ exports["lang:nl"] = {
     },
 
     "month abbreviation" : function (test) {
-
         test.equal(moment([2012, 5, 23]).format('D-MMM-YYYY'), '23-jun-2012', 'format month abbreviation surrounded by dashes should not include a dot');
         test.equal(moment([2012, 5, 23]).format('D MMM YYYY'), '23 jun. 2012', 'format month abbreviation not surrounded by dashes should include a dot');
 
@@ -251,7 +240,6 @@ exports["lang:nl"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -262,7 +250,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -273,7 +260,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -285,7 +271,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -297,7 +282,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -309,7 +293,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -321,7 +304,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -333,7 +315,6 @@ exports["lang:nl"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52ste', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1ste', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1ste', "Jan  8 2012 should be week 1");
index 28481449466a26a3db86369b9965b876060ff973..11483ccd00bb39ecaf8ae20a6b07eb66d916977d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:nn"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januar jan_februar feb_mars mar_april apr_mai mai_juni jun_juli jul_august aug_september sep_oktober okt_november nov_desember des'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:nn"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'sundag, februar 14. 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'sun, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:nn"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:nn"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'januar jan_februar feb_mars mar_april apr_mai mai_juni jun_juli jul_august aug_september sep_oktober okt_november nov_desember des'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:nn"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'sundag sun su_måndag mån må_tysdag tys ty_onsdag ons on_torsdag tor to_fredag fre fr_laurdag lau lø'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:nn"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "nokre sekund", "44 sekunder = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "eit minutt",   "45 seconds = a minute");
@@ -182,7 +176,6 @@ exports["lang:nn"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "I dag klokka 02:00",     "today at the same time");
@@ -195,7 +188,6 @@ exports["lang:nn"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -209,7 +201,6 @@ exports["lang:nn"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -241,7 +232,6 @@ exports["lang:nn"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +242,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +252,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +263,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +274,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +285,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +296,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +307,6 @@ exports["lang:nn"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 15f7f87b5d91b0580391db61fc61afa33077f757..cbb46b502a0fdc33c1cc0a155892a40801717c00 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:pl"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'styczeń sty_luty lut_marzec mar_kwiecień kwi_maj maj_czerwiec cze_lipiec lip_sierpień sie_wrzesień wrz_październik paź_listopad lis_grudzień gru'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:pl"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'niedziela, luty 14. 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'nie, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:pl"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -113,7 +110,6 @@ exports["lang:pl"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'styczeń sty_luty lut_marzec mar_kwiecień kwi_maj maj_czerwiec cze_lipiec lip_sierpień sie_wrzesień wrz_październik paź_listopad lis_grudzień gru'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:pl"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'niedziela nie N_poniedziałek pon Pn_wtorek wt Wt_środa śr Śr_czwartek czw Cz_piątek pt Pt_sobota sb So'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:pl"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "kilka sekund",  "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minuta",        "45 seconds = a minute");
@@ -187,7 +181,6 @@ exports["lang:pl"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Dziś o 02:00",     "today at the same time");
@@ -200,7 +193,6 @@ exports["lang:pl"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -214,7 +206,6 @@ exports["lang:pl"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -244,7 +235,6 @@ exports["lang:pl"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -264,7 +254,6 @@ exports["lang:pl"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -275,7 +264,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -286,7 +274,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -298,7 +285,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -310,7 +296,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -322,7 +307,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -334,7 +318,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -346,7 +329,6 @@ exports["lang:pl"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index fa0762eea862fa4f62dc79b4896f70000535d769..9ff5d9dbc58bb1479a5039ec37bb15f45a652f8a 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:pt-br"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'janeiro jan_fevereiro fev_março mar_abril abr_maio mai_junho jun_julho jul_agosto ago_setembro set_outubro out_novembro nov_dezembro dez'.split("_"), i;
 
         function equalTest(input, mmm, i) {
@@ -43,7 +42,6 @@ exports["lang:pt-br"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'domingo, fevereiro 14º 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'dom, 3PM'],
@@ -77,7 +75,6 @@ exports["lang:pt-br"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1º', '1º');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2º', '2º');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3º', '3º');
@@ -116,7 +113,6 @@ exports["lang:pt-br"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'janeiro jan_fevereiro fev_março mar_abril abr_maio mai_junho jun_julho jul_agosto ago_setembro set_outubro out_novembro nov_dezembro dez'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -125,7 +121,6 @@ exports["lang:pt-br"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'domingo dom_segunda-feira seg_terça-feira ter_quarta-feira qua_quinta-feira qui_sexta-feira sex_sábado sáb'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd'), expected[i], expected[i]);
@@ -134,7 +129,6 @@ exports["lang:pt-br"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "segundos",    "44 seconds = seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "um minuto",   "45 seconds = a minute");
@@ -168,22 +162,18 @@ exports["lang:pt-br"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "em segundos", "prefix");
         test.equal(moment(0).from(30000), "segundos atrás", "suffix");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "em segundos", "in seconds");
         test.equal(moment().add({d: 5}).fromNow(), "em 5 dias", "in 5 days");
         test.done();
     },
 
     "calendar day" : function (test) {
-
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hoje às 02:00",     "today at the same time");
@@ -196,7 +186,6 @@ exports["lang:pt-br"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -210,7 +199,6 @@ exports["lang:pt-br"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -224,7 +212,6 @@ exports["lang:pt-br"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -244,7 +231,6 @@ exports["lang:pt-br"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -255,7 +241,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -267,7 +252,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -279,7 +263,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -291,7 +274,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -303,7 +285,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -315,7 +296,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -326,7 +306,6 @@ exports["lang:pt-br"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1º', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1º', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2º', "Jan  8 2012 should be week 2");
index 1d3dc7fa5dcf670f34b65d158fb55795db80adc4..74297d50bc560d0e7f432603b9248f01fbfe0f1a 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:pt"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'Janeiro Jan_Fevereiro Fev_Março Mar_Abril Abr_Maio Mai_Junho Jun_Julho Jul_Agosto Ago_Setembro Set_Outubro Out_Novembro Nov_Dezembro Dez'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:pt"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'domingo, fevereiro 14º 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'dom, 3PM'],
@@ -173,7 +171,6 @@ exports["lang:pt"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hoje às 02:00",     "today at the same time");
@@ -186,7 +183,6 @@ exports["lang:pt"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -200,7 +196,6 @@ exports["lang:pt"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -214,7 +209,6 @@ exports["lang:pt"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -234,7 +228,6 @@ exports["lang:pt"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -245,7 +238,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -256,7 +248,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -268,7 +259,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -280,7 +270,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -292,7 +281,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -304,7 +292,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -316,7 +303,6 @@ exports["lang:pt"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52º', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),  '1 01 1º', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),  '1 01 1º', "Jan  8 2012 should be week 1");
index f1fd228f434017e056500944c8dbc9764fe36adf..a44497052daace3153a636ffc16d5903dcf9a997 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ro"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'ianuarie ian._februarie febr._martie mart._aprilie apr._mai mai_iunie iun._iulie iul._august aug._septembrie sept._octombrie oct._noiembrie nov._decembrie dec.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:ro"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss A',  'duminică, februarie 14 2010, 3:25:50 PM'],
                 ['ddd, hA',                        'Dum, 3PM'],
@@ -74,7 +72,6 @@ exports["lang:ro"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -113,7 +110,6 @@ exports["lang:ro"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'ianuarie ian._februarie febr._martie mart._aprilie apr._mai mai_iunie iun._iulie iul._august aug._septembrie sept._octombrie oct._noiembrie nov._decembrie dec.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -122,7 +118,6 @@ exports["lang:ro"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'duminică Dum Du_luni Lun Lu_marți Mar Ma_miercuri Mie Mi_joi Joi Jo_vineri Vin Vi_sâmbătă Sâm Sâ'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -131,7 +126,6 @@ exports["lang:ro"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "câteva secunde", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "un minut",       "45 seconds = a minute");
@@ -190,7 +184,6 @@ exports["lang:ro"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "azi la 2:00",     "today at the same time");
@@ -203,7 +196,6 @@ exports["lang:ro"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -217,7 +209,6 @@ exports["lang:ro"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -250,7 +241,6 @@ exports["lang:ro"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -261,7 +251,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -272,7 +261,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -284,7 +272,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -296,7 +283,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -308,7 +294,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -320,7 +305,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -332,7 +316,6 @@ exports["lang:ro"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2', "Jan  2 2012 should be week 2");
index d427bf17d170bf7ad372484cc51a82d49fc01cc4..d3f6aadc731b6584644c69cbfff18e88ad4f186c 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:ru"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'январь янв_февраль фев_март мар_апрель апр_май май_июнь июнь_июль июль_август авг_сентябрь сен_октябрь окт_ноябрь ноя_декабрь дек'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -45,7 +44,6 @@ exports["lang:ru"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, HH:mm:ss',       'воскресенье, 14-го февраля 2010, 15:25:50'],
                 ['ddd, h A',                           'вс, 3 дня'],
@@ -79,7 +77,6 @@ exports["lang:ru"] = {
     },
 
     "format meridiem" : function (test) {
-
         test.equal(moment([2012, 11, 28, 0, 0]).format("A"), "ночи", "night");
         test.equal(moment([2012, 11, 28, 3, 59]).format("A"), "ночи", "night");
         test.equal(moment([2012, 11, 28, 4, 0]).format("A"), "утра", "morning");
@@ -93,7 +90,6 @@ exports["lang:ru"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1-й', '1-й');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2-й', '2-й');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3-й', '3-й');
@@ -132,7 +128,6 @@ exports["lang:ru"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'январь янв_февраль фев_март мар_апрель апр_май май_июнь июнь_июль июль_август авг_сентябрь сен_октябрь окт_ноябрь ноя_декабрь дек'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -141,7 +136,6 @@ exports["lang:ru"] = {
     },
 
     "format month case" : function (test) {
-
         var months = {
             'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
             'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
@@ -154,7 +148,6 @@ exports["lang:ru"] = {
     },
 
     "format month short case" : function (test) {
-
         var monthsShort = {
             'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
             'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
@@ -167,7 +160,6 @@ exports["lang:ru"] = {
     },
 
     "format month case with escaped symbols" : function (test) {
-
         var months = {
             'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
             'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
@@ -182,7 +174,6 @@ exports["lang:ru"] = {
     },
 
     "format month short case with escaped symbols" : function (test) {
-
         var monthsShort = {
             'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
             'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
@@ -197,7 +188,6 @@ exports["lang:ru"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'воскресенье вс вс_понедельник пн пн_вторник вт вт_среда ср ср_четверг чт чт_пятница пт пт_суббота сб сб'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -256,7 +246,6 @@ exports["lang:ru"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Сегодня в 02:00",     "today at the same time");
@@ -269,7 +258,6 @@ exports["lang:ru"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         function makeFormat(d) {
             return d.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
@@ -287,7 +275,6 @@ exports["lang:ru"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -317,7 +304,6 @@ exports["lang:ru"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -337,7 +323,6 @@ exports["lang:ru"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -348,7 +333,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -359,7 +343,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -371,7 +354,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -383,7 +365,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -395,7 +376,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -407,7 +387,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -419,7 +398,6 @@ exports["lang:ru"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-я', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-я', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-я', "Jan  2 2012 should be week 2");
index 1e022c52963606727b18a5734aed4f5fec9e7ed1..77dcb7f6733feccca2bc73189608bb6513c16514 100644 (file)
@@ -210,7 +210,6 @@ exports["lang:sk"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "dnes o 2:00",     "today at the same time");
@@ -223,7 +222,6 @@ exports["lang:sk"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m, nextDay;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -261,7 +259,6 @@ exports["lang:sk"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m, lastDay;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -325,7 +322,6 @@ exports["lang:sk"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -336,7 +332,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -347,7 +342,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -359,7 +353,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -371,7 +364,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -383,7 +375,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -395,7 +386,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -407,7 +397,6 @@ exports["lang:sk"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 92fd1f1a1a48920a5583c8616ef7fba05c69c6a2..c86378d02dc4e92d4f3091f2fbc6e05465ddf88d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:sl"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januar jan._februar feb._marec mar._april apr._maj maj_junij jun._julij jul._avgust avg._september sep._oktober okt._november nov._december dec.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -177,7 +176,6 @@ exports["lang:sl"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "danes ob 2:00",  "today at the same time");
@@ -190,7 +188,6 @@ exports["lang:sl"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -221,7 +218,6 @@ exports["lang:sl"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -250,7 +246,6 @@ exports["lang:sl"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -270,7 +265,6 @@ exports["lang:sl"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -281,7 +275,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -292,7 +285,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -304,7 +296,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -316,7 +307,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -328,7 +318,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -340,7 +329,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -352,7 +340,6 @@ exports["lang:sl"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index 6f17032e84740ed6afebd1f64fa099252d8c9e7b..53eceb23f72869ddc3d6f4e8ba986a50f8384300 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:sq"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'Janar Jan_Shkurt Shk_Mars Mar_Prill Pri_Maj Maj_Qershor Qer_Korrik Kor_Gusht Gus_Shtator Sht_Tetor Tet_Nëntor Nën_Dhjetor Dhj'.split("_");
 
@@ -44,7 +43,6 @@ exports["lang:sq"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, HH:mm:ss',       'E Diel, Shkurt 14. 2010, 15:25:50'],
                 ['ddd, HH',                            'Die, 15'],
@@ -80,7 +78,6 @@ exports["lang:sq"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  0, 0]).format('A'), "PD", "before dawn");
         test.equal(moment([2011, 2, 23, 12, 0]).format('A'), "MD", "noon");
 
@@ -88,7 +85,6 @@ exports["lang:sq"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
@@ -127,7 +123,6 @@ exports["lang:sq"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'Janar Jan_Shkurt Shk_Mars Mar_Prill Pri_Maj Maj_Qershor Qer_Korrik Kor_Gusht Gus_Shtator Sht_Tetor Tet_Nëntor Nën_Dhjetor Dhj'.split("_");
 
@@ -138,7 +133,6 @@ exports["lang:sq"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'E Diel Die D_E Hënë Hën H_E Martë Mar Ma_E Mërkurë Mër Më_E Enjte Enj E_E Premte Pre P_E Shtunë Sht Sh'.split("_");
 
@@ -150,7 +144,6 @@ exports["lang:sq"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "disa sekonda", "44 seconds = a few seconds");
@@ -186,7 +179,6 @@ exports["lang:sq"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "në disa sekonda",  "prefix");
         test.equal(moment(0).from(30000), "disa sekonda më parë", "suffix");
 
@@ -194,14 +186,12 @@ exports["lang:sq"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "disa sekonda më parë",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "në disa sekonda", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "në 5 ditë", "in 5 days");
 
@@ -209,7 +199,6 @@ exports["lang:sq"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Sot në 02:00",     "today at the same time");
@@ -223,7 +212,6 @@ exports["lang:sq"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -238,7 +226,6 @@ exports["lang:sq"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -253,7 +240,6 @@ exports["lang:sq"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -272,7 +258,6 @@ exports["lang:sq"] = {
     // Monday is the first day of the week.
     // The week that contains Jan 4th is the first week of the year.
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -283,7 +268,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -294,7 +278,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -306,7 +289,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -318,7 +300,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -330,7 +311,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -342,7 +322,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -354,7 +333,6 @@ exports["lang:sq"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52.', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1.', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1.', "Jan  8 2012 should be week 1");
index 55c30e7c28b2e909a78a369f98d0a588d923ef3f..dd9532a252ead2697a0ce3e85d146cff65e35c2d 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'јануар јан._фебруар феб._март мар._април апр._мај мај_јун јун_јул јул_август авг._септембар сеп._октобар окт._новембар нов._децембар дец.'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -180,7 +179,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "данас у 2:00",  "today at the same time");
@@ -193,7 +191,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -224,7 +221,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -253,7 +249,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -273,7 +268,6 @@ exports["lang:sr-cyrl"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -284,7 +278,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -295,7 +288,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -307,7 +299,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -319,7 +310,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -331,7 +321,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -343,7 +332,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -355,7 +343,6 @@ exports["lang:sr-cyrl"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index a0c77f2f7a978c609ee348cceca5da371373d58c..09d0a51788a60d76f1f8c646cf76c98884c77c83 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:sr"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'januar jan._februar feb._mart mar._april apr._maj maj_jun jun_jul jul_avgust avg._septembar sep._oktobar okt._novembar nov._decembar dec.'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -180,7 +179,6 @@ exports["lang:sr"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "danas u 2:00",  "today at the same time");
@@ -193,7 +191,6 @@ exports["lang:sr"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -224,7 +221,6 @@ exports["lang:sr"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -253,7 +249,6 @@ exports["lang:sr"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -273,7 +268,6 @@ exports["lang:sr"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -284,7 +278,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -295,7 +288,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -307,7 +299,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -319,7 +310,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -331,7 +321,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -343,7 +332,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -355,7 +343,6 @@ exports["lang:sr"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1.', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1.', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2.', "Jan  2 2012 should be week 2");
index dc3c77d138635c0861787b1a1ef7e6757dba4fdd..31218a01fa6eb9c891d5568e6b401c920e35f2cb 100644 (file)
@@ -175,7 +175,6 @@ exports["lang:sv"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Idag 02:00",     "today at the same time");
@@ -188,7 +187,6 @@ exports["lang:sv"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -202,7 +200,6 @@ exports["lang:sv"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -235,7 +232,6 @@ exports["lang:sv"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -246,7 +242,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -257,7 +252,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -269,7 +263,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -281,7 +274,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -293,7 +285,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -305,7 +296,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -317,7 +307,6 @@ exports["lang:sv"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52a', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1a', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1a', "Jan  8 2012 should be week 1");
index 6c5a469c0757b11e7bbb80f5512c9fec178609fc..4ab244febea4ccf9fc1940f32e03c82fe7890553 100644 (file)
@@ -176,7 +176,6 @@ exports["lang:ta"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),  "இன்று 02:00", "இன்று  02:00");
@@ -189,7 +188,6 @@ exports["lang:ta"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -203,7 +201,6 @@ exports["lang:ta"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -219,7 +216,6 @@ exports["lang:ta"] = {
 
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -241,7 +237,6 @@ exports["lang:ta"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -252,7 +247,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -264,7 +258,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -276,7 +269,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -288,7 +280,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -300,7 +291,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -312,7 +302,6 @@ exports["lang:ta"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -323,7 +312,6 @@ exports["lang:ta"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  2, 30]).format('a'), " வைகறை", "before dawn");
         test.equal(moment([2011, 2, 23,  9, 30]).format('a'), " காலை", "morning");
         test.equal(moment([2011, 2, 23, 14, 30]).format('a'), " நண்பகல்", "during day");
index 9a5c884ff70750189d40b996f638863de8640c7b..f8814657fa3333b28565b265549ca6073d318ea2 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:th"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'มกราคม มกรา_กุมภาพันธ์ กุมภา_มีนาคม มีนา_เมษายน เมษา_พฤษภาคม พฤษภา_มิถุนายน มิถุนา_กรกฎาคม กรกฎา_สิงหาคม สิงหา_กันยายน กันยา_ตุลาคม ตุลา_พฤศจิกายน พฤศจิกา_ธันวาคม ธันวา'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:th"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, Do MMMM YYYY, h:mm:ss a',      'อาทิตย์, 14 กุมภาพันธ์ 2010, 3:25:50 หลังเที่ยง'],
                 ['ddd, h A',                           'อาทิตย์, 3 หลังเที่ยง'],
@@ -74,7 +72,6 @@ exports["lang:th"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'มกราคม มกรา_กุมภาพันธ์ กุมภา_มีนาคม มีนา_เมษายน เมษา_พฤษภาคม พฤษภา_มิถุนายน มิถุนา_กรกฎาคม กรกฎา_สิงหาคม สิงหา_กันยายน กันยา_ตุลาคม ตุลา_พฤศจิกายน พฤศจิกา_ธันวาคม ธันวา'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -83,7 +80,6 @@ exports["lang:th"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'อาทิตย์ อาทิตย์ อา._จันทร์ จันทร์ จ._อังคาร อังคาร อ._พุธ พุธ พ._พฤหัสบดี พฤหัส พฤ._ศุกร์ ศุกร์ ศ._เสาร์ เสาร์ ส.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -92,7 +88,6 @@ exports["lang:th"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "ไม่กี่วินาที",   "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "1 นาที", "45 seconds = a minute");
@@ -143,7 +138,6 @@ exports["lang:th"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "วันนี้ เวลา 2 นาฬิกา 0 นาที",      "today at the same time");
@@ -156,7 +150,6 @@ exports["lang:th"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -170,7 +163,6 @@ exports["lang:th"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -184,7 +176,6 @@ exports["lang:th"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -203,7 +194,6 @@ exports["lang:th"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -214,7 +204,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -226,7 +215,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -238,7 +226,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -250,7 +237,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -262,7 +248,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -274,7 +259,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -285,7 +269,6 @@ exports["lang:th"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1', "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2', "Jan  8 2012 should be week 2");
index 0f2a4c31bcea463a8693950512b7cf18a17ceb6b..aa137a6ca0ffc03a0f3996358036b9f22f0c0d52 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:tl-ph"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'Enero Ene_Pebrero Peb_Marso Mar_Abril Abr_Mayo May_Hunyo Hun_Hulyo Hul_Agosto Ago_Setyembre Set_Oktubre Okt_Nobyembre Nob_Disyembre Dis'.split("_"),
             i;
         function equalTest(input, mmm, i) {
@@ -41,7 +40,6 @@ exports["lang:tl-ph"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Linggo, Pebrero 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Lin, 3PM'],
@@ -75,7 +73,6 @@ exports["lang:tl-ph"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -114,7 +111,6 @@ exports["lang:tl-ph"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'Enero Ene_Pebrero Peb_Marso Mar_Abril Abr_Mayo May_Hunyo Hun_Hulyo Hul_Agosto Ago_Setyembre Set_Oktubre Okt_Nobyembre Nob_Disyembre Dis'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -123,7 +119,6 @@ exports["lang:tl-ph"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Linggo Lin Li_Lunes Lun Lu_Martes Mar Ma_Miyerkules Miy Mi_Huwebes Huw Hu_Biyernes Biy Bi_Sabado Sab Sab'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -132,7 +127,6 @@ exports["lang:tl-ph"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "ilang segundo", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "isang minuto",   "45 seconds = a minute");
@@ -166,21 +160,18 @@ exports["lang:tl-ph"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "sa loob ng ilang segundo", "prefix");
         test.equal(moment(0).from(30000), "ilang segundo ang nakalipas", "suffix");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "sa loob ng ilang segundo", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "sa loob ng 5 araw", "in 5 days");
         test.done();
     },
 
     "same day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Ngayon sa 02:00",    "today at the same time");
@@ -193,7 +184,6 @@ exports["lang:tl-ph"] = {
     },
 
     "same next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -208,7 +198,6 @@ exports["lang:tl-ph"] = {
     },
 
     "same last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -241,7 +230,6 @@ exports["lang:tl-ph"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -252,7 +240,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -263,7 +250,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -275,7 +261,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -287,7 +272,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -299,7 +283,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -311,7 +294,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -323,7 +305,6 @@ exports["lang:tl-ph"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'), '1 01 1', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'), '1 01 1', "Jan  8 2012 should be week 1");
index 5e2f14ea35265f64456a679cf9c9e32ec12cfb37..bfe4208e85447063e065e9e97a2378efb916f0dc 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:tr"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'Ocak Oca_Şubat Şub_Mart Mar_Nisan Nis_Mayıs May_Haziran Haz_Temmuz Tem_Ağustos Ağu_Eylül Eyl_Ekim Eki_Kasım Kas_Aralık Ara'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:tr"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'Pazar, Şubat 14\'üncü 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'Paz, 3PM'],
@@ -85,7 +83,6 @@ exports["lang:tr"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1\'inci', '1st');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2\'nci', '2nd');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3\'üncü', '3rd');
@@ -124,7 +121,6 @@ exports["lang:tr"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'Ocak Oca_Şubat Şub_Mart Mar_Nisan Nis_Mayıs May_Haziran Haz_Temmuz Tem_Ağustos Ağu_Eylül Eyl_Ekim Eki_Kasım Kas_Aralık Ara'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -133,7 +129,6 @@ exports["lang:tr"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'Pazar Paz Pz_Pazartesi Pts Pt_Salı Sal Sa_Çarşamba Çar Ça_Perşembe Per Pe_Cuma Cum Cu_Cumartesi Cts Ct'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -192,7 +187,6 @@ exports["lang:tr"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "bugün saat 02:00",     "today at the same time");
@@ -205,7 +199,6 @@ exports["lang:tr"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -219,7 +212,6 @@ exports["lang:tr"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -233,7 +225,6 @@ exports["lang:tr"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -253,7 +244,6 @@ exports["lang:tr"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -264,7 +254,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -275,7 +264,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -287,7 +275,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -299,7 +286,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -311,7 +297,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -323,7 +308,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -335,7 +319,6 @@ exports["lang:tr"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), "1 01 1'inci", "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), "1 01 1'inci", "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), "2 02 2'nci", "Jan  2 2012 should be week 2");
index 9b249f7aacf1089d28d91e93c94655b193e47754..0783af89a574f53bce1fcff4ea5ae528f9706f27 100644 (file)
@@ -18,7 +18,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'innayr innayr_brˤayrˤ brˤayrˤ_marˤsˤ marˤsˤ_ibrir ibrir_mayyw mayyw_ywnyw ywnyw_ywlywz ywlywz_ɣwšt ɣwšt_šwtanbir šwtanbir_ktˤwbrˤ ktˤwbrˤ_nwwanbir nwwanbir_dwjnbir dwjnbir'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -38,7 +37,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'asamas, brˤayrˤ 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'asamas, 3PM'],
@@ -72,7 +70,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -111,7 +108,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "format month" : function (test) {
-
         var expected = 'innayr innayr_brˤayrˤ brˤayrˤ_marˤsˤ marˤsˤ_ibrir ibrir_mayyw mayyw_ywnyw ywnyw_ywlywz ywlywz_ɣwšt ɣwšt_šwtanbir šwtanbir_ktˤwbrˤ ktˤwbrˤ_nwwanbir nwwanbir_dwjnbir dwjnbir'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
@@ -120,7 +116,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "format week" : function (test) {
-
         var expected = 'asamas asamas asamas_aynas aynas aynas_asinas asinas asinas_akras akras akras_akwas akwas akwas_asimwas asimwas asimwas_asiḍyas asiḍyas asiḍyas'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
@@ -129,7 +124,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "imik", "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minuḍ",      "45 seconds = a minute");
@@ -163,27 +157,23 @@ exports["lang:tzm-latn"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "dadkh s yan imik",  "prefix");
         test.equal(moment(0).from(30000), "yan imik", "suffix");
         test.done();
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "yan imik",  "now from now should display as in the past");
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "dadkh s yan imik", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "dadkh s yan 5 ossan", "in 5 days");
         test.done();
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "asdkh g 02:00",     "today at the same time");
@@ -196,7 +186,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -210,7 +199,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -243,7 +231,6 @@ exports["lang:tzm-latn"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 31]).week(), 1, "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).week(), 1, "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).week(), 2, "Jan  7 2012 should be week 2");
@@ -254,7 +241,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 30]).week(), 1, "Dec 30 2006 should be week 1");
         test.equal(moment([2007,  0,  5]).week(), 1, "Jan  5 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 2, "Jan  6 2007 should be week 2");
@@ -265,7 +251,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 1, "Dec 29 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  4]).week(), 1, "Jan  4 2008 should be week 1");
@@ -277,7 +262,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 28]).week(), 1, "Dec 28 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  3]).week(), 1, "Jan  3 2003 should be week 1");
@@ -289,7 +273,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 27]).week(), 1, "Dec 27 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  2]).week(), 1, "Jan  2 2009 should be week 1");
@@ -301,7 +284,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 26]).week(), 1, "Dec 26 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 2, "Jan  2 2010 should be week 2");
@@ -312,7 +294,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011, 0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011, 0,  7]).week(), 1, "Jan  7 2011 should be week 1");
         test.equal(moment([2011, 0,  8]).week(), 2, "Jan  8 2011 should be week 2");
@@ -323,7 +304,6 @@ exports["lang:tzm-latn"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 31]).format('w ww wo'), '1 01 1', "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).format('w ww wo'), '1 01 1', "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).format('w ww wo'), '2 02 2', "Jan  7 2012 should be week 2");
index 25f9e7d4084c14f0174c8caece90eab5dbef30e6..f8443db0b5de0359d8a061c495cb403f91e4d398 100644 (file)
@@ -174,7 +174,6 @@ exports["lang:tzm"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "ⴰⵙⴷⵅ ⴴ 02:00",     "today at the same time");
@@ -187,7 +186,6 @@ exports["lang:tzm"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -201,7 +199,6 @@ exports["lang:tzm"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -234,7 +231,6 @@ exports["lang:tzm"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 31]).week(), 1, "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).week(), 1, "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).week(), 2, "Jan  7 2012 should be week 2");
@@ -245,7 +241,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 30]).week(), 1, "Dec 30 2006 should be week 1");
         test.equal(moment([2007,  0,  5]).week(), 1, "Jan  5 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 2, "Jan  6 2007 should be week 2");
@@ -256,7 +251,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 1, "Dec 29 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  4]).week(), 1, "Jan  4 2008 should be week 1");
@@ -268,7 +262,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 28]).week(), 1, "Dec 28 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  3]).week(), 1, "Jan  3 2003 should be week 1");
@@ -280,7 +273,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 27]).week(), 1, "Dec 27 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  2]).week(), 1, "Jan  2 2009 should be week 1");
@@ -292,7 +284,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 26]).week(), 1, "Dec 26 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 2, "Jan  2 2010 should be week 2");
@@ -303,7 +294,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011, 0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011, 0,  7]).week(), 1, "Jan  7 2011 should be week 1");
         test.equal(moment([2011, 0,  8]).week(), 2, "Jan  8 2011 should be week 2");
@@ -314,7 +304,6 @@ exports["lang:tzm"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 31]).format('w ww wo'), '1 01 1', "Dec 31 2011 should be week 1");
         test.equal(moment([2012,  0,  6]).format('w ww wo'), '1 01 1', "Jan  6 2012 should be week 1");
         test.equal(moment([2012,  0,  7]).format('w ww wo'), '2 02 2', "Jan  7 2012 should be week 2");
index 8ec46ef0703b23d7a27853a525c1633456a0b740..0bfb18849fb68c258096292b3810d5895c3f5f6a 100644 (file)
@@ -68,7 +68,6 @@ exports["lang:uk"] = {
     },
 
     "format meridiem" : function (test) {
-
         test.equal(moment([2012, 11, 28, 0, 0]).format("A"), "ночі", "night");
         test.equal(moment([2012, 11, 28, 3, 59]).format("A"), "ночі", "night");
         test.equal(moment([2012, 11, 28, 4, 0]).format("A"), "ранку", "morning");
@@ -195,7 +194,6 @@ exports["lang:uk"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Сьогодні о 02:00",     "today at the same time");
@@ -210,7 +208,6 @@ exports["lang:uk"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -224,7 +221,6 @@ exports["lang:uk"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         function makeFormat(d) {
@@ -271,7 +267,6 @@ exports["lang:uk"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2011, 11, 26]).week(), 1, "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).week(), 2, "Jan  2 2012 should be week 2");
@@ -282,7 +277,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -293,7 +287,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -305,7 +298,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -317,7 +309,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -329,7 +320,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 1");
@@ -341,7 +331,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 1");
@@ -353,7 +342,6 @@ exports["lang:uk"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2011, 11, 26]).format('w ww wo'), '1 01 1-й', "Dec 26 2011 should be week 1");
         test.equal(moment([2012,  0,  1]).format('w ww wo'), '1 01 1-й', "Jan  1 2012 should be week 1");
         test.equal(moment([2012,  0,  2]).format('w ww wo'), '2 02 2-й', "Jan  2 2012 should be week 2");
index 12f36f4e546aada00f11fec739955693f2e25a5d..951102a8693e43191131215b823a4ce1d5c42913 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:uz"] = {
     },
 
     "parse" : function (test) {
-
         var tests = 'январь янв_февраль фев_март мар_апрель апр_май май_июнь июнь_июль июль_август авг_сентябрь сен_октябрь окт_ноябрь ноя_декабрь дек'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -177,7 +176,6 @@ exports["lang:uz"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Бугун соат 02:00 да",      "today at the same time");
@@ -190,7 +188,6 @@ exports["lang:uz"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -204,7 +201,6 @@ exports["lang:uz"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -219,7 +215,6 @@ exports["lang:uz"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -239,7 +234,6 @@ exports["lang:uz"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 1, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  2, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  2, "Jan  8 2012 should be week 1");
@@ -250,7 +244,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -261,7 +254,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -273,7 +265,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -285,7 +276,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -297,7 +287,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 1, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 1, "Jan  3 2010 should be week 53");
@@ -309,7 +298,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 1, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 1, "Jan  2 2011 should be week 52");
@@ -321,7 +309,6 @@ exports["lang:uz"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '2 02 2', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '2 02 2', "Jan  8 2012 should be week 1");
index 71bfac6f102f2b12c4ff82e30353277d13982751..d1924c1f23794af6cf077b14acb11c1ba9fe27ab 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:vi"] = {
     },
 
     "parse" : function (test) {
-
         var i,
             tests = 'tháng 1,Th01_tháng 2,Th02_tháng 3,Th03_tháng 4,Th04_tháng 5,Th05_tháng 6,Th06_tháng 7,Th07_tháng 8,Th08_tháng 9,Th09_tháng 10,Th10_tháng 11,Th11_tháng 12,Th12'.split("_");
 
@@ -44,7 +43,6 @@ exports["lang:vi"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss a',      'chủ nhật, tháng 2 14 2010, 3:25:50 pm'],
                 ['ddd, hA',                            'CN, 3PM'],
@@ -80,7 +78,6 @@ exports["lang:vi"] = {
     },
 
     "format ordinal" : function (test) {
-
         test.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
         test.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
         test.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
@@ -119,7 +116,6 @@ exports["lang:vi"] = {
     },
 
     "format month" : function (test) {
-
         var i,
             expected = 'tháng 1,Th01_tháng 2,Th02_tháng 3,Th03_tháng 4,Th04_tháng 5,Th05_tháng 6,Th06_tháng 7,Th07_tháng 8,Th08_tháng 9,Th09_tháng 10,Th10_tháng 11,Th11_tháng 12,Th12'.split("_");
 
@@ -130,7 +126,6 @@ exports["lang:vi"] = {
     },
 
     "format week" : function (test) {
-
         var i,
             expected = 'chủ nhật CN CN_thứ hai T2 T2_thứ ba T3 T3_thứ tư T4 T4_thứ năm T5 T5_thứ sáu T6 T6_thứ bảy T7 T7'.split("_");
 
@@ -142,7 +137,6 @@ exports["lang:vi"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
 
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "vài giây", "44 seconds = a few seconds");
@@ -178,7 +172,6 @@ exports["lang:vi"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "vài giây tới",  "prefix");
         test.equal(moment(0).from(30000), "vài giây trước", "suffix");
 
@@ -186,14 +179,12 @@ exports["lang:vi"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "vài giây trước",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "vài giây tới", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "5 ngày tới", "in 5 days");
 
@@ -201,7 +192,6 @@ exports["lang:vi"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "Hôm nay lúc 02:00",     "today at the same time");
@@ -215,7 +205,6 @@ exports["lang:vi"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -230,7 +219,6 @@ exports["lang:vi"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
 
         for (i = 2; i < 7; i++) {
@@ -245,7 +233,6 @@ exports["lang:vi"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -265,7 +252,6 @@ exports["lang:vi"] = {
     // The week that contains Jan 4th is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0, 1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0, 2]).week(),  1, "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0, 8]).week(),  1, "Jan  8 2012 should be week 1");
@@ -276,7 +262,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2007, 0, 1]).week(),  1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007, 0, 7]).week(),  1, "Jan  7 2007 should be week 1");
         test.equal(moment([2007, 0, 8]).week(),  2, "Jan  8 2007 should be week 2");
@@ -287,7 +272,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 31]).week(), 1, "Dec 31 2007 should be week 1");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  6]).week(), 1, "Jan  6 2008 should be week 1");
@@ -299,7 +283,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 30]).week(), 1, "Dec 30 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  5]).week(), 1, "Jan  5 2003 should be week 1");
@@ -311,7 +294,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 29]).week(), 1, "Dec 29 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -323,7 +305,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 28]).week(), 53, "Dec 28 2009 should be week 53");
         test.equal(moment([2010,  0,  1]).week(), 53, "Jan  1 2010 should be week 53");
         test.equal(moment([2010,  0,  3]).week(), 53, "Jan  3 2010 should be week 53");
@@ -335,7 +316,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 27]).week(), 52, "Dec 27 2010 should be week 52");
         test.equal(moment([2011,  0,  1]).week(), 52, "Jan  1 2011 should be week 52");
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
@@ -347,7 +327,6 @@ exports["lang:vi"] = {
     },
 
     "weeks year starting sunday formatted" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '52 52 52', "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).format('w ww wo'),   '1 01 1', "Jan  2 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).format('w ww wo'),   '1 01 1', "Jan  8 2012 should be week 1");
index 94b0b5cfc156e1e83d63360a0afbaa429d41658b..2e16cc67e40e0a727469629436bf328ae43e5666 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:zh-cn"] = {
     },
 
     "parse" : function (test) {
-
         var tests = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split("_"), i;
 
         function equalTest(input, mmm, i) {
@@ -42,7 +41,6 @@ exports["lang:zh-cn"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, a h:mm:ss',      '星期日, 二月 14日 2010, 下午 3:25:50'],
                 ['ddd, Ah',                            '周日, 下午3'],
@@ -78,7 +76,6 @@ exports["lang:zh-cn"] = {
     },
 
     "format month" : function (test) {
-
         var expected = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split("_"), i;
 
         for (i = 0; i < expected.length; i++) {
@@ -89,7 +86,6 @@ exports["lang:zh-cn"] = {
     },
 
     "format week" : function (test) {
-
         var expected = '星期日 周日 日_星期一 周一 一_星期二 周二 二_星期三 周三 三_星期四 周四 四_星期五 周五 五_星期六 周六 六'.split("_"), i;
 
         for (i = 0; i < expected.length; i++) {
@@ -100,7 +96,6 @@ exports["lang:zh-cn"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "几秒",   "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "1分钟", "45 seconds = a minute");
@@ -135,7 +130,6 @@ exports["lang:zh-cn"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "几秒内",  "prefix");
         test.equal(moment(0).from(30000), "几秒前", "suffix");
 
@@ -143,14 +137,12 @@ exports["lang:zh-cn"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "几秒前",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "几秒内", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "5天内", "in 5 days");
 
@@ -158,7 +150,6 @@ exports["lang:zh-cn"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "今天凌晨2点整",     "today at the same time");
@@ -216,7 +207,6 @@ exports["lang:zh-cn"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -232,7 +222,6 @@ exports["lang:zh-cn"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  0, 0]).format('A'), "凌晨", "before dawn");
         test.equal(moment([2011, 2, 23,  6, 0]).format('A'), "早上", "morning");
         test.equal(moment([2011, 2, 23,  9, 0]).format('A'), "上午", "before noon");
@@ -247,7 +236,6 @@ exports["lang:zh-cn"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 52, "Jan  1 2012 should be week 52");
         test.equal(moment([2012, 0,  2]).week(), 1, "Jan  2 2012 should be week 52");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
@@ -257,7 +245,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 52, "Dec 31 2006 should be week 52");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -269,7 +256,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -281,7 +267,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 52, "Dec 29 2002 should be week 52");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -293,7 +278,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
         test.equal(moment([2009,  0,  4]).week(), 1, "Jan  4 2009 should be week 1");
@@ -304,7 +288,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2010,  0,  2]).week(), 53, "Jan  2 2010 should be week 53");
         test.equal(moment([2010,  0, 10]).week(), 1, "Jan 10 2010 should be week 1");
 
@@ -312,7 +295,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2011,  0,  2]).week(), 52, "Jan  2 2011 should be week 52");
         test.equal(moment([2011,  0,  8]).week(), 1, "Jan  8 2011 should be week 1");
         test.equal(moment([2011,  0,  9]).week(), 1, "Jan  9 2011 should be week 1");
@@ -321,7 +303,6 @@ exports["lang:zh-cn"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         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, 14]).format('w ww wo'), '2 02 2周', "Jan 14 2012 应该是第 2周");
index 8bd5ab78ca4396cd76b4da70d03f50d3366bc3d2..f5067f8c231206161b7561d65877b705496c975b 100644 (file)
@@ -20,7 +20,6 @@ exports["lang:zh-tw"] = {
     },
 
     "parse" : function (test) {
-
         var tests = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
@@ -40,7 +39,6 @@ exports["lang:zh-tw"] = {
     },
 
     "format" : function (test) {
-
         var a = [
                 ['dddd, MMMM Do YYYY, a h:mm:ss',      '星期日, 二月 14日 2010, 下午 3:25:50'],
                 ['ddd, Ah',                            '週日, 下午3'],
@@ -76,7 +74,6 @@ exports["lang:zh-tw"] = {
     },
 
     "format month" : function (test) {
-
         var expected = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split("_"), i;
 
         for (i = 0; i < expected.length; i++) {
@@ -87,7 +84,6 @@ exports["lang:zh-tw"] = {
     },
 
     "format week" : function (test) {
-
         var expected = '星期日 週日 日_星期一 週一 一_星期二 週二 二_星期三 週三 三_星期四 週四 四_星期五 週五 五_星期六 週六 六'.split("_"), i;
 
         for (i = 0; i < expected.length; i++) {
@@ -98,7 +94,6 @@ exports["lang:zh-tw"] = {
     },
 
     "from" : function (test) {
-
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "幾秒",   "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "一分鐘", "45 seconds = a minute");
@@ -133,7 +128,6 @@ exports["lang:zh-tw"] = {
     },
 
     "suffix" : function (test) {
-
         test.equal(moment(30000).from(0), "幾秒內",  "prefix");
         test.equal(moment(0).from(30000), "幾秒前", "suffix");
 
@@ -141,14 +135,12 @@ exports["lang:zh-tw"] = {
     },
 
     "now from now" : function (test) {
-
         test.equal(moment().fromNow(), "幾秒前",  "now from now should display as in the past");
 
         test.done();
     },
 
     "fromNow" : function (test) {
-
         test.equal(moment().add({s: 30}).fromNow(), "幾秒內", "in a few seconds");
         test.equal(moment().add({d: 5}).fromNow(), "5天內", "in 5 days");
 
@@ -156,7 +148,6 @@ exports["lang:zh-tw"] = {
     },
 
     "calendar day" : function (test) {
-
         var a = moment().hours(2).minutes(0).seconds(0);
 
         test.equal(moment(a).calendar(),                     "今天早上2點00",     "today at the same time");
@@ -170,7 +161,6 @@ exports["lang:zh-tw"] = {
     },
 
     "calendar next week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().add({d: i});
@@ -185,7 +175,6 @@ exports["lang:zh-tw"] = {
     },
 
     "calendar last week" : function (test) {
-
         var i, m;
         for (i = 2; i < 7; i++) {
             m = moment().subtract({d: i});
@@ -200,7 +189,6 @@ exports["lang:zh-tw"] = {
     },
 
     "calendar all else" : function (test) {
-
         var weeksAgo = moment().subtract({w: 1}),
             weeksFromNow = moment().add({w: 1});
 
@@ -217,7 +205,6 @@ exports["lang:zh-tw"] = {
     },
 
     "meridiem" : function (test) {
-
         test.equal(moment([2011, 2, 23,  0, 0]).format('a'), "早上", "morning");
         test.equal(moment([2011, 2, 23,  9, 0]).format('a'), "上午", "before noon");
         test.equal(moment([2011, 2, 23, 12, 0]).format('a'), "中午", "noon");
@@ -237,7 +224,6 @@ exports["lang:zh-tw"] = {
     // The week that contains Jan 1st is the first week of the year.
 
     "weeks year starting sunday" : function (test) {
-
         test.equal(moment([2012, 0,  1]).week(), 1, "Jan  1 2012 should be week 1");
         test.equal(moment([2012, 0,  7]).week(), 1, "Jan  7 2012 should be week 1");
         test.equal(moment([2012, 0,  8]).week(), 2, "Jan  8 2012 should be week 2");
@@ -248,7 +234,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting monday" : function (test) {
-
         test.equal(moment([2006, 11, 31]).week(), 1, "Dec 31 2006 should be week 1");
         test.equal(moment([2007,  0,  1]).week(), 1, "Jan  1 2007 should be week 1");
         test.equal(moment([2007,  0,  6]).week(), 1, "Jan  6 2007 should be week 1");
@@ -260,7 +245,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting tuesday" : function (test) {
-
         test.equal(moment([2007, 11, 29]).week(), 52, "Dec 29 2007 should be week 52");
         test.equal(moment([2008,  0,  1]).week(), 1, "Jan  1 2008 should be week 1");
         test.equal(moment([2008,  0,  5]).week(), 1, "Jan  5 2008 should be week 1");
@@ -272,7 +256,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting wednesday" : function (test) {
-
         test.equal(moment([2002, 11, 29]).week(), 1, "Dec 29 2002 should be week 1");
         test.equal(moment([2003,  0,  1]).week(), 1, "Jan  1 2003 should be week 1");
         test.equal(moment([2003,  0,  4]).week(), 1, "Jan  4 2003 should be week 1");
@@ -284,7 +267,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting thursday" : function (test) {
-
         test.equal(moment([2008, 11, 28]).week(), 1, "Dec 28 2008 should be week 1");
         test.equal(moment([2009,  0,  1]).week(), 1, "Jan  1 2009 should be week 1");
         test.equal(moment([2009,  0,  3]).week(), 1, "Jan  3 2009 should be week 1");
@@ -296,7 +278,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting friday" : function (test) {
-
         test.equal(moment([2009, 11, 27]).week(), 1, "Dec 27 2009 should be week 1");
         test.equal(moment([2010,  0,  1]).week(), 1, "Jan  1 2010 should be week 1");
         test.equal(moment([2010,  0,  2]).week(), 1, "Jan  2 2010 should be week 1");
@@ -308,7 +289,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting saturday" : function (test) {
-
         test.equal(moment([2010, 11, 26]).week(), 1, "Dec 26 2010 should be week 1");
         test.equal(moment([2011,  0,  1]).week(), 1, "Jan  1 2011 should be week 1");
         test.equal(moment([2011,  0,  2]).week(), 2, "Jan  2 2011 should be week 2");
@@ -319,7 +299,6 @@ exports["lang:zh-tw"] = {
     },
 
     "weeks year starting sunday format" : function (test) {
-
         test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1週', "Jan  1 2012 應該是第 1週");
         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週");
index 854852157af2c5c1fff36f6278c53ab774aeae77..a533ba94ea213600a1834243a3fbc7c75cfcb395 100644 (file)
@@ -359,7 +359,6 @@ exports.create = {
     },
 
     "string with array of formats" : function (test) {
-
         test.equal(moment('11-02-1999', ['MM-DD-YYYY', 'DD-MM-YYYY']).format('MM DD YYYY'), '11 02 1999', 'switching month and day');
         test.equal(moment('02-11-1999', ['MM/DD/YYYY', 'YYYY MM DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 11 1999', 'year last');
         test.equal(moment('1999-02-11', ['MM/DD/YYYY', 'YYYY MM DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 11 1999', 'year first');
index c84a8a8b5dfd97b02a68364c3722e7a88362fd25..60f6585ea0ef960a9ca3f3ee558aa2fe7986854c 100644 (file)
@@ -217,7 +217,6 @@ exports.format = {
     },
 
     "iso week formats" : function (test) {
-
         // http://en.wikipedia.org/wiki/ISO_week_date
         var cases = {
             "2005-01-02": "2004-53",
@@ -252,7 +251,6 @@ exports.format = {
     },
 
     "iso week year formats" : function (test) {
-
         // http://en.wikipedia.org/wiki/ISO_week_date
         var cases = {
             "2005-01-02": "2004-53",
@@ -288,7 +286,6 @@ exports.format = {
     },
 
     "week year formats" : function (test) {
-
         // http://en.wikipedia.org/wiki/ISO_week_date
         var cases = {
             "2005-01-02": "2004-53",
index eb53ad1b67a80d63400f27dacfd2839e032b036a..de589e936e8a623fa0617af604943174cbb12e17 100644 (file)
@@ -106,7 +106,6 @@ exports.isValid = {
     },
 
     "invalid string iso 8601" : function (test) {
-
         var tests = [
             '2010-00-00',
             '2010-01-00',
@@ -126,7 +125,6 @@ exports.isValid = {
     },
 
     "invalid string iso 8601 + timezone" : function (test) {
-
         var tests = [
             '2010-00-00T+00:00',
             '2010-01-00T+00:00',
index 6897333e20c3341e1060289c26ddd27585f65238..2570cee9581026e95d8052c0bc399ba1ccb52373 100644 (file)
@@ -13,7 +13,6 @@ exports.parsingFlags = {
 
 
     'overflow with array' : function (test) {
-
         //months
         test.equal(flags([2010, 0]).overflow, -1, 'month 0 valid');
         test.equal(flags([2010, 1]).overflow, -1, 'month 1 valid');
@@ -56,7 +55,6 @@ exports.parsingFlags = {
     },
 
     'overflow without format' : function (test) {
-
         //months
         test.equal(flags('2001-01', 'YYYY-MM').overflow, -1, 'month 1 valid');
         test.equal(flags('2001-12', 'YYYY-MM').overflow, -1, 'month 12 valid');
@@ -102,7 +100,6 @@ exports.parsingFlags = {
     },
 
     'extra tokens' : function (test) {
-
         test.deepEqual(flags('1982-05-25', 'YYYY-MM-DD').unusedTokens, [], 'nothing extra');
         test.deepEqual(flags('1982-05', 'YYYY-MM-DD').unusedTokens, ['DD'], 'extra formatting token');
         test.deepEqual(flags('1982', 'YYYY-MM-DD').unusedTokens, ['MM', 'DD'], 'multiple extra formatting tokens');
@@ -114,7 +111,6 @@ exports.parsingFlags = {
     },
 
     'extra tokens strict' : function (test) {
-
         test.deepEqual(flags('1982-05-25', 'YYYY-MM-DD', true).unusedTokens, [], 'nothing extra');
         test.deepEqual(flags('1982-05', 'YYYY-MM-DD', true).unusedTokens, ['-', 'DD'], 'extra formatting token');
         test.deepEqual(flags('1982', 'YYYY-MM-DD', true).unusedTokens, ['-', 'MM', '-', 'DD'], 'multiple extra formatting tokens');