From d3c92cdb92e37963dfb4ec69da9c728747d671a5 Mon Sep 17 00:00:00 2001
From: donal <donalspring@gmail.com>
Date: Sat, 21 Apr 2018 19:43:42 +0200
Subject: [PATCH] FIX - linting errors for the build

---
 nightwatch.config.js |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/nightwatch.config.js b/nightwatch.config.js
index 128194d..a9746c3 100644
--- a/nightwatch.config.js
+++ b/nightwatch.config.js
@@ -6,7 +6,7 @@
   src_folders: [
     "tests/e2e/specs" // Where you are storing your Nightwatch e2e tests
   ],
-  // TODO - move to the package.json 
+  // TODO - move to the package.json
   // urlToTest: process.env.E2E_ENV ? `http://app-name-labs-${process.env.E2E_ENV}.apps.company-xyz.rht-labs.com`: "http://localhost:8080",
   output_folder: "./reports/e2e",
   selenium: {
@@ -41,10 +41,11 @@
       }
     }
   }
-}
+};
 
-function padLeft (count) { // theregister.co.uk/2016/03/23/npm_left_pad_chaos/
-  return count < 10 ? "0" + count: count.toString();
+function padLeft(count) {
+  // theregister.co.uk/2016/03/23/npm_left_pad_chaos/
+  return count < 10 ? "0" + count : count.toString();
 }
 
 var FILECOUNT = 0; // global screenshot file count
@@ -55,15 +56,18 @@
  * While we"re at it, we are adding some meta-data to the filename, specifically
  * the Platform/Browser where the test was run and the test (file) name.
  */
-function imgpath (browser) {
+function imgpath(browser) {
   var a = browser.options.desiredCapabilities;
   var meta = [a.platform];
-  meta.push(a.browserName ? a.browserName: "any");
-  meta.push(a.version ? a.version: "any");
+  meta.push(a.browserName ? a.browserName : "any");
+  meta.push(a.version ? a.version : "any");
   meta.push(a.name); // this is the test filename so always exists.
-  var metadata = meta.join("~").toLowerCase().replace(/ /g, "");
+  var metadata = meta
+    .join("~")
+    .toLowerCase()
+    .replace(/ /g, "");
   return SCREENSHOT_PATH + metadata + "_" + padLeft(FILECOUNT++) + "_";
 }
 
 module.exports.imgpath = imgpath;
-module.exports.SCREENSHOT_PATH = SCREENSHOT_PATH;
\ No newline at end of file
+module.exports.SCREENSHOT_PATH = SCREENSHOT_PATH;

--
Gitblit v1.9.3