Skip to content

Commit 5b0466f

Browse files
committed
refactor: code
1 parent b1911e0 commit 5b0466f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/helpers/test-server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ function startFullSetup(config, options, done) {
2727
console.warn('Using the default port for testing is not recommended');
2828
port = 8080;
2929
}
30-
const host = Object.prototype.hasOwnProperty.call(options, 'host')
30+
31+
options.host = Object.prototype.hasOwnProperty.call(options, 'host')
3132
? options.host
3233
: 'localhost';
3334

34-
server.listen(port, host, (err) => {
35+
server.listen(port, options.host, (err) => {
3536
if (err && done) {
3637
return done(err);
3738
}

0 commit comments

Comments
 (0)