Skip to content

Commit 5e34080

Browse files
committed
[Tests] fix linting errors
1 parent 1d11a76 commit 5e34080

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

test/integration/test-boundary-prediction.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ var common = require('../common');
22
var assert = common.assert;
33
var FormData = require(common.dir.lib + '/form_data');
44
var satisfies = require('semver').satisfies;
5-
var predictV8Randomness = satisfies(process.version, '^17 - ^23') && require('predict-v8-randomness');
5+
var predictV8Randomness = satisfies(process.version, '^17 - ^23') && require('predict-v8-randomness'); // eslint-disable-line global-require
66

77
var initialSequence = [
88
Math.random(),
99
Math.random(),
1010
Math.random(),
11-
Math.random(),
11+
Math.random()
1212
];
1313
var predictor = predictV8Randomness && new predictV8Randomness.Predictor(initialSequence);
1414

@@ -22,19 +22,12 @@ if (predictor) {
2222

2323
var boundaryIntro = '----------------------------';
2424

25-
var payload =
26-
'zzz\r\n' +
27-
boundaryIntro +
28-
predictedBoundary +
29-
'\r\nContent-Disposition: form-data; name="is_admin"\r\n\r\ntrue\r\n' +
30-
boundaryIntro +
31-
predictedBoundary +
32-
'--\r\n';
25+
var payload = 'zzz\r\n' + boundaryIntro + predictedBoundary + '\r\nContent-Disposition: form-data; name="is_admin"\r\n\r\ntrue\r\n' + boundaryIntro + predictedBoundary + '--\r\n';
3326

3427
var FIELDS = {
3528
my_field: {
36-
value: payload,
37-
},
29+
value: payload
30+
}
3831
};
3932

4033
// count total

0 commit comments

Comments
 (0)