Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
💅 Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Nov 24, 2017
1 parent c69a0bc commit fddf54a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/steps/queries/2_when.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function theQueryInstanceSendsARequestUsingTheEndpointAndTheParameters()
}

export function theQueryInstanceSendsARequestUsingTheEndpointTheParametersAndTheOptions() {
const { queryInstance, endpoint, parameters, options } = this.test.ctx;
const {
queryInstance, endpoint, parameters, options,
} = this.test.ctx;
const returnValue = queryInstance.sendRequest(endpoint, parameters, options);
this.test.ctx.returnValue = returnValue;
return returnValue.catch(e => e);
Expand Down
8 changes: 6 additions & 2 deletions test/steps/vorpal/2_when.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,18 @@ export function theActionIsCalledWithTheRecipientTheMessageAndTheOptions() {
}

export function theActionIsCalledWithTheTypeTheInputsAndTheOptions() {
const { action, type, inputs, options } = this.test.ctx;
const {
action, type, inputs, options,
} = this.test.ctx;
const returnValue = action({ type, inputs, options });
this.test.ctx.returnValue = returnValue;
return returnValue.catch(e => e);
}

export function theActionIsCalledWithTheTypeTheInputAndTheOptions() {
const { action, type, input, options } = this.test.ctx;
const {
action, type, input, options,
} = this.test.ctx;
const returnValue = action({ type, input, options });
this.test.ctx.returnValue = returnValue;
return returnValue.catch(e => e);
Expand Down

0 comments on commit fddf54a

Please sign in to comment.