]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix for style guide 2419/head
authorJD Isaacks <jd@jisaacks.com>
Mon, 15 Jun 2015 16:22:48 +0000 (12:22 -0400)
committerJD Isaacks <jd@jisaacks.com>
Mon, 15 Jun 2015 16:22:48 +0000 (12:22 -0400)
src/test/moment/format.js

index de1ebbda444905c5aef1bbcdb52c65df999c5532..c30daeea341fd9f7e153193ccc47993f316c2d89 100644 (file)
@@ -325,7 +325,7 @@ test('quarter formats', function (assert) {
     assert.equal(moment([2000, 0,  2]).format('[Q]Q-YYYY'), 'Q1-2000', 'Jan  2 2000 is Q1');
 });
 
-test('full expanded format is returned from abbreviated formats', function(assert){
+test('full expanded format is returned from abbreviated formats', function (assert) {
     var locales = '';
 
     locales += 'af ar-ma ar-sa ar-tn ar az be bg bn bo br bs';
@@ -336,19 +336,18 @@ test('full expanded format is returned from abbreviated formats', function(asser
     locales += 'ro ru si sk sl sq sr-cyrl  sr sv ta th tl-ph';
     locales += 'tr tzm-latn tzm   uk uz vi zh-cn zh-tw';
 
-    locales.split(' ').forEach(function(locale) {
+    locales.split(' ').forEach(function (locale) {
         var data, tokens;
         data = moment().locale(locale).localeData()._longDateFormat;
         tokens = Object.keys(data);
-        tokens.forEach(function(token){
+        tokens.forEach(function (token) {
             // Check each format string to make sure it does not contain any
             // tokens that need to be expanded.
-            tokens.forEach(function(i){
+            tokens.forEach(function (i) {
                 // strip escaped sequences
                 var format = data[i].replace(/(\[[^\]]*\])/g, '');
                 assert.equal(false, !!~format.indexOf(token), 'locale ' + locale + ' contains ' + token + ' in ' + i);
             });
         });
     });
-
 });