Skip to content

Commit

Permalink
chore: fix code from master
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy authored and alexander-akait committed Jan 29, 2020
1 parent 7660a7c commit 0d0187e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions globalSetupTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const ports = require('./test/ports-map');
async function validatePorts() {
const samples = [];

Object.keys(ports).forEach((key) => {
const value = ports[key];
Object.entries(ports).forEach(([key, value]) => {
const arr = Array.isArray(value) ? value : [value];

arr.forEach((port) => {
Expand Down
4 changes: 1 addition & 3 deletions test/ports-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ const portsList = {
let startPort = 8089;
const ports = {};

Object.keys(portsList).forEach((key) => {
const value = portsList[key];

Object.entries(portsList).forEach(([key, value]) => {
ports[key] =
value === 1
? (startPort += 1)
Expand Down
2 changes: 1 addition & 1 deletion test/server/contentBase-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ describe('contentBase option', () => {
beforeAll((done) => {
jest.spyOn(process, 'cwd').mockImplementation(() => contentBasePublic);

server = testServer.start(config, {}, done);
server = testServer.start(config, { port }, done);
req = request(server.app);
});

Expand Down

0 comments on commit 0d0187e

Please sign in to comment.