From ee12704133972e8348c6c0a0796083f0f7993369 Mon Sep 17 00:00:00 2001 From: Jeff Miccolis Date: Tue, 29 Mar 2016 13:39:48 -0400 Subject: [PATCH] eslinting --- features/step_definitions/options.js | 2 +- features/step_definitions/routability.js | 2 +- features/support/route.js | 26 ++++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/features/step_definitions/options.js b/features/step_definitions/options.js index 29df0ed89..27d6fd3ab 100644 --- a/features/step_definitions/options.js +++ b/features/step_definitions/options.js @@ -61,7 +61,7 @@ module.exports = function () { this.Given(/^the query options$/, (table, callback) => { table.raw().forEach(tuple => { - this.queryParams[tuple[0]] = tuple[1] + this.queryParams[tuple[0]] = tuple[1]; }); callback(); diff --git a/features/step_definitions/routability.js b/features/step_definitions/routability.js index 0f1117c2a..9f3a9f16d 100644 --- a/features/step_definitions/routability.js +++ b/features/step_definitions/routability.js @@ -108,7 +108,7 @@ module.exports = function () { result.bothw[key] = 'diff'; } scb(); - } + }; ['status', 'time', 'distance', 'speed'].forEach((key) => { sq.defer(parseRes, key); diff --git a/features/support/route.js b/features/support/route.js index 591a6be4a..4fc1315ee 100644 --- a/features/support/route.js +++ b/features/support/route.js @@ -47,10 +47,10 @@ module.exports = function () { if (bearings.length && bearings.length !== waypoints.length) throw new Error('*** number of bearings does not equal the number of waypoints'); var defaults = { - output: 'json', - steps: 'true', - alternatives: 'false' - }, + output: 'json', + steps: 'true', + alternatives: 'false' + }, params = this.overwriteParams(defaults, userParams), encodedWaypoints = encodeWaypoints(waypoints); @@ -67,8 +67,8 @@ module.exports = function () { this.requestNearest = (node, userParams, callback) => { var defaults = { - output: 'json' - }, + output: 'json' + }, params = this.overwriteParams(defaults, userParams); params.coordinates = [[node.lon, node.lat].join(',')]; @@ -77,8 +77,8 @@ module.exports = function () { this.requestTable = (waypoints, userParams, callback) => { var defaults = { - output: 'json' - }, + output: 'json' + }, params = this.overwriteParams(defaults, userParams); params.coordinates = waypoints.map(w => [w.coord.lon, w.coord.lat].join(',')); @@ -90,8 +90,8 @@ module.exports = function () { this.requestTrip = (waypoints, userParams, callback) => { var defaults = { - output: 'json' - }, + output: 'json' + }, params = this.overwriteParams(defaults, userParams); params.coordinates = encodeWaypoints(waypoints); @@ -101,8 +101,8 @@ module.exports = function () { this.requestMatching = (waypoints, timestamps, userParams, callback) => { var defaults = { - output: 'json' - }, + output: 'json' + }, params = this.overwriteParams(defaults, userParams); params.coordinates = encodeWaypoints(waypoints); @@ -129,7 +129,7 @@ module.exports = function () { }; this.compassList = (instructions) => { - return this.extractInstructionList(instructions, s => 'n'); // TODO fixme + return this.extractInstructionList(instructions, () => 'n'); // TODO fixme }; this.bearingList = (instructions) => {