Skip to content

Commit ba0116a

Browse files
committedJun 6, 2019
chore: linting
1 parent a4597dd commit ba0116a

File tree

18 files changed

+86
-43
lines changed

18 files changed

+86
-43
lines changed
 

‎package-lock.json

+30-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/binCases/config-location/find-recursively/packages/foo/find-recursively.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test("find-recursively", () => {
99
"--output-chunk-filename",
1010
"[id].chunk.js",
1111
"--target",
12-
"async-node",
12+
"async-node"
1313
]);
1414
expect(code).toBe(0);
1515
expect(stdout).toEqual(expect.anything());

‎test/binCases/config-location/not-found/not-found.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test("not-found", () => {
1111
"--target",
1212
"async-node",
1313
"--mode",
14-
"production",
14+
"production"
1515
]);
1616
expect(code).toBe(0);
1717
expect(stdout).toContain("./src/index.js");

‎test/binCases/config-location/set-explicitly/set-explicitly.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test("set-explicitly", () => {
1313
"--output-chunk-filename",
1414
"[id].chunk.js",
1515
"--target",
16-
"async-node",
16+
"async-node"
1717
]);
1818
expect(code).toBe(0);
1919
expect(stdout).toEqual(expect.anything());

‎test/binCases/config-location/set-implicitly/set-implicitly.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test("set-implicitly", () => {
99
"--output-chunk-filename",
1010
"[id].chunk.js",
1111
"--target",
12-
"async-node",
12+
"async-node"
1313
]);
1414
expect(code).toBe(0);
1515
expect(stdout).toEqual(expect.anything());

‎test/binCases/config-location/webpack-babel-config/webpack-babel-config.test.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33
const { run } = require("../../../testUtils");
44

55
test("webpack-babel-config", () => {
6-
const { stdout, stderr } = run(__dirname, [
7-
"--target",
8-
"async-node",
9-
"-r",
10-
"esm",
11-
"@babel/register"
12-
]);
6+
const { stdout, stderr } = run(__dirname, ["--target", "async-node", "-r", "esm", "@babel/register"]);
137
expect(stdout).toContain("es6.js");
148
expect(stderr).toHaveLength(0);
159
});

‎test/binCases/config-location/webpackfile-config/packages/foo/webpackfile-config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test("find-recursively", () => {
99
"--output-chunk-filename",
1010
"[id].chunk.js",
1111
"--target",
12-
"async-node",
12+
"async-node"
1313
]);
1414
expect(code).toBe(0);
1515
expect(stdout).toEqual(expect.anything());

‎test/binCases/config-type/array/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ module.exports = [
1212
}
1313
}
1414
];
15-

‎test/binCases/config-type/invalid-array/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ module.exports = [
1313
}
1414
}
1515
];
16-
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
module.exports = 100;
2-
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var path = require("path");
22

33
module.exports = {
4-
entry: path.resolve(__dirname, "./index"),
4+
entry: path.resolve(__dirname, "./index")
55
};

‎test/binCases/stats/single-config/single-config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66

‎test/binCases/watch/info-verbosity-off/info-verbosity-off.test.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);

‎test/binCases/watch/info-verbosity-verbose/info-verbosity-verbose.test.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);
@@ -107,6 +113,5 @@ test.skip("info-verbosity-verbose", done => {
107113
default:
108114
break;
109115
}
110-
111116
});
112117
});

‎test/binCases/watch/multi-config-watch-opt/multi-config-watch-opt.test.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);
@@ -86,4 +92,3 @@ test.skip("multi-config-watch-opt", done => {
8692
expect(error.toString()).toContain("webpack is watching the files");
8793
});
8894
});
89-

‎test/binCases/watch/multi-config/multi-config.test.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);

‎test/binCases/watch/single-config-watch-opt/single-config-watch-opt.test.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);
@@ -86,4 +92,3 @@ test.skip("single-config-watch-opt", done => {
8692
expect(error.toString()).toContain("webpack is watching the files");
8793
});
8894
});
89-

‎test/binCases/watch/single-config/single-config.test.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
"use strict";
22

3-
jest.setTimeout(10E6);
3+
jest.setTimeout(10e6);
44
/* eslint-disable node/no-unsupported-features */
55
/* eslint-disable node/no-unsupported-features/es-syntax */
66
const fs = require("fs");
77
const path = require("path");
8-
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
8+
const {
9+
extractSummary,
10+
extractHash,
11+
appendDataIfFileExists,
12+
runAndGetWatchProc,
13+
copyFile
14+
} = require("../../../testUtils");
915

1016
const fileToChange = "index.js";
1117
const fileToChangePath = path.resolve(__dirname, fileToChange);

0 commit comments

Comments
 (0)
Please sign in to comment.