couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [04/11] fauxton commit: updated refs/heads/master to 9343084
Date Wed, 25 Mar 2015 10:14:01 GMT
styleguide: space around binary operators

PR: #326
PR-URL: https://github.com/apache/couchdb-fauxton/pull/326
Reviewed-By: garren smith <garren.smith@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/55c8b182
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/55c8b182
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/55c8b182

Branch: refs/heads/master
Commit: 55c8b182006e2f5863964890c7dc9e57b433e618
Parents: 0609b40
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sun Mar 22 20:11:31 2015 +0100
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Wed Mar 25 11:11:46 2015 +0100

----------------------------------------------------------------------
 app/addons/activetasks/views.js                         |  2 +-
 app/addons/config/views.js                              |  2 +-
 app/addons/cors/views.js                                |  2 +-
 app/addons/databases/base.js                            |  2 +-
 app/addons/databases/resources.js                       |  2 +-
 .../databases/tests/nightwatch/createsDatabase.js       |  2 +-
 app/addons/documents/resources.js                       |  2 +-
 app/addons/documents/routes-documents.js                |  2 +-
 app/addons/documents/shared-resources.js                |  6 +++---
 app/addons/documents/shared-routes.js                   |  2 +-
 .../documents/tests/nightwatch/createsDocument.js       | 12 ++++++------
 .../documents/tests/nightwatch/deletesDocument.js       |  2 +-
 ...navigateAfterEditingDocShouldShowAConfirmationBox.js |  4 ++--
 .../documents/tests/nightwatch/navigateFromNewDoc.js    |  4 ++--
 .../documents/tests/nightwatch/navigateToNewView.js     |  2 +-
 app/addons/documents/views-doceditor.js                 |  4 ++--
 app/addons/fauxton/components.js                        |  2 +-
 app/addons/styletests/views.js                          |  2 +-
 app/core/routeObject.js                                 |  2 +-
 app/core/utils.js                                       |  2 +-
 tasks/addon/template.js                                 |  2 +-
 .../nightwatch_tests/custom-commands/auth/loginToGUI.js |  2 +-
 test/nightwatch_tests/custom-commands/createDatabase.js |  2 +-
 test/nightwatch_tests/custom-commands/createDocument.js |  4 ++--
 test/nightwatch_tests/custom-commands/deleteDatabase.js |  4 ++--
 .../custom-commands/populateDatabase.js                 |  2 +-
 test/nightwatch_tests/helpers/helpers.js                |  4 ++--
 27 files changed, 40 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/activetasks/views.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/views.js b/app/addons/activetasks/views.js
index 6e54b0d..bd3e30a 100644
--- a/app/addons/activetasks/views.js
+++ b/app/addons/activetasks/views.js
@@ -183,7 +183,7 @@ function (app, FauxtonAPI, ActiveTasks) {
       if (this.type === 'indexer') {
         progress = 'Processed ' + this.model.get('changes_done') + ' of ' + this.model.get('total_changes')
+ ' changes. ';
       } else if (this.type === 'replication') {
-        progress = this.model.get('docs_written')+ ' docs written. ';
+        progress = this.model.get('docs_written') + ' docs written. ';
         if (!_.isUndefined(this.model.get('changes_pending'))) {
           progress += this.model.get('changes_pending') + ' pending changes. ';
         }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/config/views.js
----------------------------------------------------------------------
diff --git a/app/addons/config/views.js b/app/addons/config/views.js
index 6a9e17d..a234810 100644
--- a/app/addons/config/views.js
+++ b/app/addons/config/views.js
@@ -255,7 +255,7 @@ function(app, FauxtonAPI, Config, Components) {
     setSelectedTab: function (selectedTab) {
       this.selectedTab = selectedTab;
       this.$('li').removeClass('active');
-      this.$('a[data-type-select="'+this.selectedTab+'"]').parent("li").addClass('active');
+      this.$('a[data-type-select="' + this.selectedTab + '"]').parent("li").addClass('active');
     },
     afterRender: function(){
       this.setSelectedTab(this.selectedTab);

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/cors/views.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/views.js b/app/addons/cors/views.js
index 66e2f94..99a4d88 100644
--- a/app/addons/cors/views.js
+++ b/app/addons/cors/views.js
@@ -20,7 +20,7 @@ define([
 
 
 function (app, FauxtonAPI, CORS, Components, Actions) {
-  var Views= {};
+  var Views = {};
 
   Views.CORSWrapper = FauxtonAPI.View.extend({
     className: 'list',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/databases/base.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/base.js b/app/addons/databases/base.js
index 546bd94..1be1ddf 100644
--- a/app/addons/databases/base.js
+++ b/app/addons/databases/base.js
@@ -79,7 +79,7 @@ function(app, FauxtonAPI, Databases, Views) {
       return '/database/' + id + '/permissions';
     },
     apiurl: function (id) {
-      return window.location.origin + '/_api/v2/db/'+ id + '/_security' ;
+      return window.location.origin + '/_api/v2/db/' + id + '/_security' ;
     }
   });
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/databases/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/resources.js b/app/addons/databases/resources.js
index c49aa47..89c1c47 100644
--- a/app/addons/databases/resources.js
+++ b/app/addons/databases/resources.js
@@ -57,7 +57,7 @@ function(app, FauxtonAPI, Documents) {
       if (context === "index") {
         return "/database/" + this.safeID() + "/_all_docs";
       } else if (context === "web-index") {
-        return "#/database/"+ this.safeID() + "/_all_docs?limit=" + Databases.DocLimit;
+        return "#/database/" + this.safeID() + "/_all_docs?limit=" + Databases.DocLimit;
       } else if (context === "apiurl") {
         return window.location.origin + "/database/" + this.safeID() + "/_all_docs";
       } else if (context === "changes") {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/databases/tests/nightwatch/createsDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/createsDatabase.js b/app/addons/databases/tests/nightwatch/createsDatabase.js
index c472ec6..fca6f79 100644
--- a/app/addons/databases/tests/nightwatch/createsDatabase.js
+++ b/app/addons/databases/tests/nightwatch/createsDatabase.js
@@ -27,7 +27,7 @@ module.exports = {
       .setValue('#js-new-database-name', [newDatabaseName])
       .click('#js-create-database')
       .waitForElementVisible('#global-notifications div.alert-success', waitTime, false)
-      .url(baseUrl+'/_all_dbs')
+      .url(baseUrl + '/_all_dbs')
       .waitForElementVisible('html', waitTime, false)
       .getText('html', function (result) {
         var data = result.value,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/resources.js b/app/addons/documents/resources.js
index c07c758..cc44fc4 100644
--- a/app/addons/documents/resources.js
+++ b/app/addons/documents/resources.js
@@ -68,7 +68,7 @@ function(app, FauxtonAPI, Documents, PagingCollection) {
     // json editor for docs, or into a ddoc specific page.
     safeID: function() {
       var ddoc = this.id.replace(/^_design\//,"");
-      return "_design/"+app.utils.safeURLName(ddoc);
+      return "_design/" + app.utils.safeURLName(ddoc);
     }
   });
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 0131adc..9920176 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -114,7 +114,7 @@ function(app, FauxtonAPI, BaseRoute, Documents, Changes, Index, DocEditor,
         model: designDocInfo
       }));
 
-      this.sidebar.setSelectedTab(app.utils.removeSpecialCharacters(ddoc)+"_metadata");
+      this.sidebar.setSelectedTab(app.utils.removeSpecialCharacters(ddoc) + "_metadata");
       this.leftheader.updateCrumbs(this.getCrumbs(this.database));
       this.rightHeader.hideQueryOptions();
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/shared-resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/shared-resources.js b/app/addons/documents/shared-resources.js
index 11e6b04..a3cba90 100644
--- a/app/addons/documents/shared-resources.js
+++ b/app/addons/documents/shared-resources.js
@@ -113,11 +113,11 @@ define([
         tempView = views[view] || {};
 
       if (reduce) {
-        tempView.reduce=reduce;
+        tempView.reduce = reduce;
       } else {
         delete tempView.reduce;
       }
-      tempView.map= map;
+      tempView.map  = map;
 
       views[view] = tempView;
       this.set({views: views});
@@ -157,7 +157,7 @@ define([
     safeID: function() {
       if (this.isDdoc()){
         var ddoc = this.id.replace(/^_design\//,"");
-        return "_design/"+app.utils.safeURLName(ddoc);
+        return "_design/" + app.utils.safeURLName(ddoc);
       }else{
         return app.utils.safeURLName(this.id);
       }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/shared-routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/shared-routes.js b/app/addons/documents/shared-routes.js
index dd97225..497d059 100644
--- a/app/addons/documents/shared-routes.js
+++ b/app/addons/documents/shared-routes.js
@@ -49,7 +49,7 @@ define([
       hasReduceFunction;
 
       promise.then(function (resp) {
-        var design = _.findWhere(that.designDocs.models, {id: '_design/'+ddoc});
+        var design = _.findWhere(that.designDocs.models, {id: '_design/' + ddoc});
         !_.isUndefined(hasReduceFunction = design.attributes.doc.views[viewName].reduce);
 
         that.rightHeader.showQueryOptions();

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/tests/nightwatch/createsDocument.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocument.js b/app/addons/documents/tests/nightwatch/createsDocument.js
index 55623f4..a1fdaf1 100644
--- a/app/addons/documents/tests/nightwatch/createsDocument.js
+++ b/app/addons/documents/tests/nightwatch/createsDocument.js
@@ -20,23 +20,23 @@ module.exports = {
 
     client
       .loginToGUI()
-      .url(baseUrl+'/#/database/'+newDatabaseName+'/_all_docs')
+      .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('#new-all-docs-button', waitTime, false)
       .click('#new-all-docs-button a')
-      .waitForElementPresent('#new-all-docs-button a[href="#/database/'+newDatabaseName+'/new"]',
waitTime, false)
-      .click('#new-all-docs-button a[href="#/database/'+newDatabaseName+'/new"]')
+      .waitForElementPresent('#new-all-docs-button a[href="#/database/' + newDatabaseName
+ '/new"]', waitTime, false)
+      .click('#new-all-docs-button a[href="#/database/' + newDatabaseName + '/new"]')
       .waitForElementPresent('#editor-container', waitTime, false)
-      .verify.urlEquals(baseUrl+'/#/database/'+ newDatabaseName+'/new')
+      .verify.urlEquals(baseUrl + '/#/database/' + newDatabaseName + '/new')
       .execute('\
         var editor = ace.edit("editor-container");\
         editor.gotoLine(2,10);\
         editor.removeWordRight();\
-        editor.insert("'+newDocumentName+'");\
+        editor.insert("' + newDocumentName + '");\
       ')
       .waitForElementPresent('#doc-editor-actions-panel .save-doc', waitTime, false)
       .click('#doc-editor-actions-panel .save-doc')
       .pause(1000)
-      .url(baseUrl+'/'+newDatabaseName+'/_all_docs')
+      .url(baseUrl + '/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('body', waitTime, false)
       .getText('body', function (result) {
         var data = result.value,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/tests/nightwatch/deletesDocument.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/deletesDocument.js b/app/addons/documents/tests/nightwatch/deletesDocument.js
index 744933e..dce5b66 100644
--- a/app/addons/documents/tests/nightwatch/deletesDocument.js
+++ b/app/addons/documents/tests/nightwatch/deletesDocument.js
@@ -30,7 +30,7 @@ module.exports = {
       .click('.control-delete')
       .acceptAlert()
       .waitForElementVisible('#global-notifications .alert.alert-info', waitTime, false)
-      .url(baseUrl+'/'+newDatabaseName+'/_all_docs')
+      .url(baseUrl + '/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('pre', waitTime, false)
       .getText('pre',function (result) {
         var data = result.value,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
b/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
index 2a627c5..5bd0557 100644
--- a/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
+++ b/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
@@ -24,10 +24,10 @@ module.exports = {
       .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('#new-all-docs-button', waitTime, false)
       .click('#new-all-docs-button a')
-      .waitForElementPresent('#new-all-docs-button a[href="'+ newLink + '"]', waitTime, false)
+      .waitForElementPresent('#new-all-docs-button a[href="' + newLink + '"]', waitTime,
false)
       .click('#new-all-docs-button a[href="' + newLink + '"]')
       .waitForElementPresent('.code-region', waitTime, false)
-      .verify.urlEquals(baseUrl+ '/' + newLink)
+      .verify.urlEquals(baseUrl + '/' + newLink)
 
       .keys(['.ace_variable', 'v'])
       .click('a[href="#_config"]')

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js b/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
index 79e6ece..22d14a6 100644
--- a/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
+++ b/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
@@ -26,10 +26,10 @@ module.exports = {
       .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('#new-all-docs-button', waitTime, false)
       .click('#new-all-docs-button a')
-      .waitForElementPresent('#new-all-docs-button a[href="'+ newLink + '"]', waitTime, false)
+      .waitForElementPresent('#new-all-docs-button a[href="' + newLink + '"]', waitTime,
false)
       .click('#new-all-docs-button a[href="' + newLink + '"]')
       .waitForElementPresent('.code-region', waitTime, false)
-      .verify.urlEquals(baseUrl+ '/' + newLink)
+      .verify.urlEquals(baseUrl + '/' + newLink)
 
       // now redirect back to the all docs page and check it's loaded properly
       .click('.fonticon-left-open')

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/tests/nightwatch/navigateToNewView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateToNewView.js b/app/addons/documents/tests/nightwatch/navigateToNewView.js
index 4f93e94..133c259 100644
--- a/app/addons/documents/tests/nightwatch/navigateToNewView.js
+++ b/app/addons/documents/tests/nightwatch/navigateToNewView.js
@@ -27,7 +27,7 @@ module.exports = {
       .waitForElementPresent('#new-all-docs-button a[href="#/database/' + newDatabaseName
+ '/new_view"]', waitTime, false)
       .click('#new-all-docs-button a[href="#/database/' + newDatabaseName + '/new_view"]')
       .waitForElementPresent('.define-view', waitTime, false)
-      .verify.urlEquals(baseUrl+'/#/database/' + newDatabaseName + '/new_view')
+      .verify.urlEquals(baseUrl + '/#/database/' + newDatabaseName + '/new_view')
 
       // now redirect back to the database page and check it's loaded properly
       .click('#nav-links a[href="#/_all_dbs"]')

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/documents/views-doceditor.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views-doceditor.js b/app/addons/documents/views-doceditor.js
index fd57ffd..616c3a8 100644
--- a/app/addons/documents/views-doceditor.js
+++ b/app/addons/documents/views-doceditor.js
@@ -166,7 +166,7 @@ function (app, FauxtonAPI, Components, Documents, Databases, prettify)
{
       var newId = this.$('#dup-id').val(),
           isDDoc = newId.match(/^_design\//),
           removeDDocID = newId.replace(/^_design\//,''),
-          encodedID = isDDoc? '_design/'+ app.utils.safeURLName(removeDDocID):app.utils.safeURLName(newId);
+          encodedID = isDDoc? '_design/' + app.utils.safeURLName(removeDDocID) : app.utils.safeURLName(newId);
 
       this.hideModal();
       FauxtonAPI.triggerRouteEvent('duplicateDoc', encodedID);
@@ -463,7 +463,7 @@ function (app, FauxtonAPI, Components, Documents, Databases, prettify)
{
         this.editor.editor.focus();
         var session = this.editor.editor.getSession();
         var count = session.getLength();
-        this.editor.editor.gotoLine(count, session.getLine(count-1).length);
+        this.editor.editor.gotoLine(count, session.getLine(count - 1).length);
       }
     },
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js
index 5f72e35..cf34afb 100644
--- a/app/addons/fauxton/components.js
+++ b/app/addons/fauxton/components.js
@@ -129,7 +129,7 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
 
       // helper template function to determine when to insert a delimiter char
       var nextCrumbHasLabel = function(crumb, index) {
-        var nextHasLabel = crumbs[index+1].name !== "";
+        var nextHasLabel = crumbs[index + 1].name !== "";
         return index < crumbs.length && crumb.name && nextHasLabel;
       };
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/addons/styletests/views.js
----------------------------------------------------------------------
diff --git a/app/addons/styletests/views.js b/app/addons/styletests/views.js
index f3e8bbb..db5497b 100644
--- a/app/addons/styletests/views.js
+++ b/app/addons/styletests/views.js
@@ -17,7 +17,7 @@ define([
 
 
 function (app, FauxtonAPI) {
-  var Views= {};
+  var Views = {};
 
   Views.tests = FauxtonAPI.View.extend({
     template: "addons/styletests/templates/theme"

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/core/routeObject.js
----------------------------------------------------------------------
diff --git a/app/core/routeObject.js b/app/core/routeObject.js
index 8132e7e..bef8f14 100644
--- a/app/core/routeObject.js
+++ b/app/core/routeObject.js
@@ -210,7 +210,7 @@ function(FauxtonAPI, Backbone) {
       events = events || this.get('events');
       _.each(events, function(method, event) {
         if (!_.isFunction(method) && !_.isFunction(this[method])) {
-          throw new Error("Invalid method: "+method);
+          throw new Error("Invalid method: " + method);
         }
         method = _.isFunction(method) ? method : this[method];
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/app/core/utils.js
----------------------------------------------------------------------
diff --git a/app/core/utils.js b/app/core/utils.js
index 3f3503e..568f0de 100644
--- a/app/core/utils.js
+++ b/app/core/utils.js
@@ -67,7 +67,7 @@ function ($, _) {
     },
 
     addWindowResize: function(fun, key){
-      onWindowResize[key]=fun;
+      onWindowResize[key] = fun;
       // You shouldn't need to call it here. Just define it at startup and each time it will
loop
       // through all the functions in the hash.
       //app.initWindowResize();

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/tasks/addon/template.js
----------------------------------------------------------------------
diff --git a/tasks/addon/template.js b/tasks/addon/template.js
index 6199c7b..91f95f1 100644
--- a/tasks/addon/template.js
+++ b/tasks/addon/template.js
@@ -16,7 +16,7 @@ exports.description = 'Generate a skeleton for an addon.';
 
 exports.notes = '';
 
-exports.after = "Created your addon! Don't forget to update your"+
+exports.after = "Created your addon! Don't forget to update your" +
                 " settings.json for it to be compiled and deployed";
 
 // Any existing file or directory matching this wildcard will cause a warning.

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/custom-commands/auth/loginToGUI.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/auth/loginToGUI.js b/test/nightwatch_tests/custom-commands/auth/loginToGUI.js
index 153cf46..f43cfde 100644
--- a/test/nightwatch_tests/custom-commands/auth/loginToGUI.js
+++ b/test/nightwatch_tests/custom-commands/auth/loginToGUI.js
@@ -18,7 +18,7 @@ exports.command = function () {
       password = client.globals.test_settings.password;
 
   client
-    .url(baseUrl+'/#login')
+    .url(baseUrl + '/#login')
     .waitForElementPresent('a[href="#login"]', 15000, false)
     .click('a[href="#login"]')
     .waitForElementPresent('#username', 10000, false)

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/custom-commands/createDatabase.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/createDatabase.js b/test/nightwatch_tests/custom-commands/createDatabase.js
index ab7efd4..7be2c18 100644
--- a/test/nightwatch_tests/custom-commands/createDatabase.js
+++ b/test/nightwatch_tests/custom-commands/createDatabase.js
@@ -27,7 +27,7 @@ CreateDatabase.prototype.command = function (databaseName) {
 
   nano.db.create(databaseName, function (err, body, header) {
     if (err) {
-      console.log('Error in nano CreateDatabase Function: '+ databaseName, err.message);
+      console.log('Error in nano CreateDatabase Function: ' + databaseName, err.message);
 
     }
     console.log('nano - created a database: ' + databaseName);

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/custom-commands/createDocument.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/createDocument.js b/test/nightwatch_tests/custom-commands/createDocument.js
index b7a2c47..9ef23eb 100644
--- a/test/nightwatch_tests/custom-commands/createDocument.js
+++ b/test/nightwatch_tests/custom-commands/createDocument.js
@@ -33,9 +33,9 @@ CreateDocument.prototype.command = function (documentName, databaseName,
docCont
   database.insert(docContents, documentName, function (err, body, header) {
 
     if (err) {
-      console.log('Error in nano CreateDocument Function: '+documentName+', in database:
'+databaseName, err.message);
+      console.log('Error in nano CreateDocument Function: ' + documentName + ', in database:
' + databaseName, err.message);
     }
-    console.log('nano  - created a doc: '+documentName+', in database: '+databaseName);
+    console.log('nano  - created a doc: ' + documentName + ', in database: ' + databaseName);
     that.emit('complete');
   });
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/custom-commands/deleteDatabase.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/deleteDatabase.js b/test/nightwatch_tests/custom-commands/deleteDatabase.js
index d65cbcb..4db5170 100644
--- a/test/nightwatch_tests/custom-commands/deleteDatabase.js
+++ b/test/nightwatch_tests/custom-commands/deleteDatabase.js
@@ -26,9 +26,9 @@ DeleteDatabase.prototype.command = function (databaseName) {
 
   nano.db.destroy(databaseName, function (err, body, header) {
     if (err) {
-      console.log('Error in nano DeleteDatabase Function: '+ databaseName, err.message);
+      console.log('Error in nano DeleteDatabase Function: ' + databaseName, err.message);
     }
-    console.log('nano - database: '+databaseName+' is deleted: ', body);
+    console.log('nano - database: ' + databaseName + ' is deleted: ', body);
     // emit the complete event
     that.emit('complete');
   });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/custom-commands/populateDatabase.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/populateDatabase.js b/test/nightwatch_tests/custom-commands/populateDatabase.js
index 841e568..a8ed0b2 100644
--- a/test/nightwatch_tests/custom-commands/populateDatabase.js
+++ b/test/nightwatch_tests/custom-commands/populateDatabase.js
@@ -31,7 +31,7 @@ PopulateDatabase.prototype.command = function (databaseName, count) {
     function () { return i < (count ? count : 20); },
     function (cb) {
       i++;
-      var document_id = 'document_'+ i;
+      var document_id = 'document_' + i;
       database.insert({ number: i }, document_id, cb);
     },
     function (err) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/55c8b182/test/nightwatch_tests/helpers/helpers.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/helpers/helpers.js b/test/nightwatch_tests/helpers/helpers.js
index f827268..f7211d7 100644
--- a/test/nightwatch_tests/helpers/helpers.js
+++ b/test/nightwatch_tests/helpers/helpers.js
@@ -28,7 +28,7 @@ module.exports = {
     nano.db.destroy(database, function (err, body, header) {
       if (err) {
         if (err.message != 'Database does not exist.' && err.message != 'missing')
{
-          console.log('Error in setting up '+database, err.message);
+          console.log('Error in setting up ' + database, err.message);
         }
       }
       // create a new database
@@ -49,7 +49,7 @@ module.exports = {
     console.log('nano cleaning up');
     nano.db.destroy(database, function (err, header, body) {
       if (err) {
-        console.log('Error in cleaning up '+database, err.message);
+        console.log('Error in cleaning up ' + database, err.message);
       }
       done();
     });


Mime
View raw message