Skip to content

Commit aa7ff5d

Browse files
committed
chore: fix code from master
1 parent 02e8568 commit aa7ff5d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

globalSetupTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const ports = require('./test/ports-map');
77
async function validatePorts() {
88
const samples = [];
99

10-
Object.keys(ports).forEach((key) => {
11-
const value = ports[key];
10+
Object.entries(ports).forEach(([key, value]) => {
1211
const arr = Array.isArray(value) ? value : [value];
1312

1413
arr.forEach((port) => {

test/ports-map.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ const portsList = {
4848
let startPort = 8089;
4949
const ports = {};
5050

51-
Object.keys(portsList).forEach((key) => {
52-
const value = portsList[key];
53-
51+
Object.entries(portsList).forEach(([key, value]) => {
5452
ports[key] =
5553
value === 1
5654
? (startPort += 1)

test/server/contentBase-option.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ describe('contentBase option', () => {
345345
beforeAll((done) => {
346346
jest.spyOn(process, 'cwd').mockImplementation(() => contentBasePublic);
347347

348-
server = testServer.start(config, {}, done);
348+
server = testServer.start(config, { port }, done);
349349
req = request(server.app);
350350
});
351351

0 commit comments

Comments
 (0)