diff --git a/test/node/transport-ws.js b/test/node/transport-ws.js index 25e22f25..711f4d93 100644 --- a/test/node/transport-ws.js +++ b/test/node/transport-ws.js @@ -28,10 +28,10 @@ test.afterEach((done) => { done(); }); -const webSocketAdress = (adress, transport) => { - const address = transport === 'WebSocket' ? [null] : []; - address.push(`ws://localhost:${adress.port}`); - return address; +const webSocketAddress = (address, transport) => { + const addr = transport === 'WebSocket' ? [null] : []; + addr.push(`ws://localhost:${address.port}`); + return addr; }; const runTest = (transport, transportName) => { @@ -39,7 +39,7 @@ const runTest = (transport, transportName) => { transport.connect( app.name, null, - ...webSocketAdress(server.address(), transportName), + ...webSocketAddress(server.address(), transportName), (error, conn) => { connection = conn; test.assertNot(error, 'connect must not return an error'); @@ -53,7 +53,7 @@ const runTest = (transport, transportName) => { app.name, null, interfaces, - ...webSocketAdress(server.address(), transportName), + ...webSocketAddress(server.address(), transportName), (error, conn, api) => { connection = conn; test.assertNot(error, 'connectAndInspect must not return an error'); diff --git a/test/node/transport-wss.js b/test/node/transport-wss.js index 31b6ad7d..2b7563e0 100644 --- a/test/node/transport-wss.js +++ b/test/node/transport-wss.js @@ -39,10 +39,10 @@ test.afterEach((done) => { done(); }); -const webSocketAdress = (adress, transport) => { - const address = transport === 'WebSocket' ? [null] : []; - address.push(`wss://localhost:${adress.port}`); - return address; +const webSocketAddress = (address, transport) => { + const addr = transport === 'WebSocket' ? [null] : []; + addr.push(`wss://localhost:${address.port}`); + return addr; }; const runTest = (transport, transportName) => { @@ -50,7 +50,7 @@ const runTest = (transport, transportName) => { transport.connect( app.name, null, - ...webSocketAdress(server.address(), transportName), + ...webSocketAddress(server.address(), transportName), (error, conn) => { connection = conn; test.assertNot(error, 'connect must not return an error'); @@ -64,7 +64,7 @@ const runTest = (transport, transportName) => { app.name, null, interfaces, - ...webSocketAdress(server.address(), transportName), + ...webSocketAddress(server.address(), transportName), (error, conn, api) => { connection = conn; test.assertNot(error, 'connectAndInspect must not return an error');