Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 2855924

Browse files
committed
Fix lint
1 parent 2b2bfca commit 2855924

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

features/step_definitions/steps.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
const { Given, When, Then } = require('cucumber');
55
const fetch = require('node-fetch');
66
const { expect } = require('chai');
7-
const fs = require('fs-extra');
8-
const { spawnSync } = require('child_process');
97
const waitOn = require('wait-on');
108

119
const hcBackendUrl = 'http://localhost:3030';
@@ -14,7 +12,6 @@ let currentUser;
1412
let currentUserPassword;
1513
let httpResponse;
1614
let currentUserAccessToken;
17-
let commandOutput;
1815

1916
function authenticate(email, plainTextPassword) {
2017
const formData = {
@@ -33,21 +30,14 @@ function authenticate(email, plainTextPassword) {
3330
.then(json => json.accessToken);
3431
}
3532

36-
function execute(command) {
37-
const script = command.replace(/node\s*/, '');
38-
return spawnSync((process.env.NODE_PATH || 'node'), [script], {
39-
cwd: './tmp/',
40-
});
41-
}
42-
4333
Given(/^the Human Connection API is up and running(?: on "http:\/\/localhost:3030")?/, (callback) => {
4434
waitOn({ resources: ['tcp:3030'], timeout: 30000 }, (err) => {
4535
if (err) throw (err);
4636
return callback();
4737
});
4838
});
4939

50-
Given("there is a 3rd party application running, e.g. 'Democracy'", () => {
40+
Given('there is a 3rd party application running, e.g. \'Democracy\'', () => {
5141
// Just documentation
5242
});
5343

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"clear": "rm -Rf tmp",
3737
"test": "npm run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary npm run mocha && npm run cucumber",
3838
"test:mongo": "npm run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary npm run mocha:mongo",
39-
"eslint": "eslint server/. test/. --config .eslintrc.json",
39+
"eslint": "eslint server/. test/. features/. --config .eslintrc.json",
4040
"start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'",
4141
"dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'",
4242
"dev": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'",

0 commit comments

Comments
 (0)