Interactive interface for browsing global, full-resolution satellite imagery
update eslintrc for e2e tests to remove func spacing
Benjamin King164dff6fc3f8
diff --git a/e2e/.eslintrc b/e2e/.eslintrcindex 1e5b91e22..2aa5f5e0a 100644--- a/e2e/.eslintrc+++ b/e2e/.eslintrc@@ -12,13 +12,20 @@},"extends": "standard","rules": {- "semi": ["error", "always"],- "space-before-function-paren": "off",- "object-curly-spacing": ["warn", "always"],+ "semi": [+ "error",+ "always"+ ],+ "object-curly-spacing": [+ "warn",+ "always"+ ],},"overrides": [{- "files": [ "*.js"],+ "files": [+ "*.js"+ ],"rules": {"no-octal": "warn","no-unused-vars": "warn",@@ -51,9 +58,13 @@"no-useless-call": "warn","no-trailing-spaces": "warn","standard/computed-property-even-spacing": "warn",+ "space-before-function-paren": [+ "error",+ "never"+ ],"wrap-iife": "warn","new-cap": "warn"}}]-}+}\ No newline at end of filediff --git a/e2e/browserstack.js b/e2e/browserstack.jsindex 783de9948..d78d31fc0 100644--- a/e2e/browserstack.js+++ b/e2e/browserstack.js@@ -27,23 +27,23 @@ try {key: process.env.BROWSERSTACK_ACCESS_KEY,localIdentifier: ('wvtester19234' + process.env.BROWSERSTACK_USER).replace(/[^a-zA-Z0-9]/g, ''),force: 'true' // if you want to kill existing ports- }, function (error) {+ }, function(error) {if (error) throw new Error(error);console.log('Connected. Running tests...');console.log('Go to https://www.browserstack.com/automate to view tests in progress.');- Nightwatch.cli(function (argv) {+ Nightwatch.cli(function(argv) {var envString = environment_names.join(',');argv.e = envString;argv.env = envString;Nightwatch.CliRunner(argv)- .setup(null, function () {- bs_local.stop(function () {+ .setup(null, function() {+ bs_local.stop(function() {process.exit();});})- .runTests(function () {- bs_local.stop(function () {+ .runTests(function() {+ bs_local.stop(function() {if (bs_local.pid && process) {// Code to stop browserstack local after end of parallel testprocess.exit();diff --git a/e2e/custom-assertions/elementCountEquals.js b/e2e/custom-assertions/elementCountEquals.jsindex 31b77108b..a45e999cd 100644--- a/e2e/custom-assertions/elementCountEquals.js+++ b/e2e/custom-assertions/elementCountEquals.js@@ -6,20 +6,20 @@//// for how to write custom assertions see// http://nightwatchjs.org/guide#writing-custom-assertions-exports.assertion = function (selector, count) {+exports.assertion = function(selector, count) {this.message = 'Testing if element <' + selector + '> has count: ' + count;this.expected = count;- this.pass = function (val) {+ this.pass = function(val) {return val === this.expected;};- this.value = function (res) {+ this.value = function(res) {return res.value;};- this.command = function (cb) {+ this.command = function(cb) {var self = this;- return this.api.execute(function (selector) {+ return this.api.execute(function(selector) {return document.querySelectorAll(selector).length;- }, [selector], function (res) {+ }, [selector], function(res) {cb.call(self, res);});};diff --git a/e2e/custom-assertions/elementCountGreater.js b/e2e/custom-assertions/elementCountGreater.jsindex 403a5a7c1..9b6aa1c8d 100644--- a/e2e/custom-assertions/elementCountGreater.js+++ b/e2e/custom-assertions/elementCountGreater.js@@ -6,20 +6,20 @@//// for how to write custom assertions see// http://nightwatchjs.org/guide#writing-custom-assertions-exports.assertion = function (selector, count) {+exports.assertion = function(selector, count) {this.message = 'Testing if element <' + selector + '> has count: ' + count;this.expected = count;- this.pass = function (val) {+ this.pass = function(val) {return val >= this.expected;};- this.value = function (res) {+ this.value = function(res) {return res.value;};- this.command = function (cb) {+ this.command = function(cb) {var self = this;- return this.api.execute(function (selector) {+ return this.api.execute(function(selector) {return document.querySelectorAll(selector).length;- }, [selector], function (res) {+ }, [selector], function(res) {cb.call(self, res);});};diff --git a/e2e/custom-assertions/urlParameterEquals.js b/e2e/custom-assertions/urlParameterEquals.jsindex e32672e3c..6ec5523cf 100644--- a/e2e/custom-assertions/urlParameterEquals.js+++ b/e2e/custom-assertions/urlParameterEquals.js@@ -1,9 +1,9 @@const { URL } = require('url');-exports.assertion = function (parameter, value) {+exports.assertion = function(parameter, value) {this.message = 'Testing if URL parameter "' + parameter + '" has value: ' + value;this.expected = `${parameter}=${value}`;- this.pass = function (value) {+ this.pass = function(value) {const expected = this.expected.split('=');const expectedParam = expected[0];const expectedValue = expected[1];@@ -12,11 +12,11 @@ exports.assertion = function (parameter, value) {}return value.get(expectedParam) === expectedValue;};- this.value = function (result) {+ this.value = function(result) {const url = new URL(result.value);return url.searchParams;};- this.command = function (cb) {+ this.command = function(cb) {this.api.url(cb);return this;};