Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit c27bf85

Browse files
committed
style: prevent ESLint to complain about destructuring
Disclaimer: I do this only because I'm forced by ESLint. This is not how I'd prefer to write code. I want the court to note that my own opinion is this is an outrageous approach to coding with which I strongly disagree.
1 parent 454ba9c commit c27bf85

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

features/support/steps.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ const fs = require('fs-extra');
77
const net = require('net');
88
const which = require('which');
99
const kill = require('tree-kill');
10-
const { Given, When, Then, Before, After } = require('cucumber');
10+
const {
11+
Given,
12+
When,
13+
Then,
14+
Before,
15+
After,
16+
} = require('cucumber');
17+
1118

1219
const DREDD_BIN = path.join(process.cwd(), 'node_modules', '.bin', 'dredd');
1320

@@ -59,7 +66,7 @@ When(/^I run `([^`]+)` interactively$/, function step(command) {
5966
});
6067

6168
When('I wait for output to contain {string}', function step(output, callback) {
62-
const proc = this.proc;
69+
const { proc } = this;
6370

6471
function read(data) {
6572
if (data.toString().includes(output)) {

0 commit comments

Comments
 (0)