diff --git a/ghost/bootstrap-socket/index.js b/ghost/bootstrap-socket/index.js index 1b27284fac..d00b0e943a 100644 --- a/ghost/bootstrap-socket/index.js +++ b/ghost/bootstrap-socket/index.js @@ -1 +1 @@ -module.exports = require('./lib/connect-and-send'); +module.exports = require('./lib/bootstrap-socket'); diff --git a/ghost/bootstrap-socket/lib/connect-and-send.js b/ghost/bootstrap-socket/lib/bootstrap-socket.js similarity index 97% rename from ghost/bootstrap-socket/lib/connect-and-send.js rename to ghost/bootstrap-socket/lib/bootstrap-socket.js index 66fc1cc5cd..db66145395 100644 --- a/ghost/bootstrap-socket/lib/connect-and-send.js +++ b/ghost/bootstrap-socket/lib/bootstrap-socket.js @@ -1,4 +1,4 @@ -module.exports = (socketAddress, logging, message) => { +module.exports.connectAndSend = (socketAddress, logging, message) => { // Very basic guard against bad calls if (!socketAddress || !socketAddress.host || !socketAddress.port || !logging || !logging.info || !logging.warn || !message) { return Promise.resolve(); diff --git a/ghost/bootstrap-socket/test/connect-and-send.test.js b/ghost/bootstrap-socket/test/bootstrap-socket.test.js similarity index 64% rename from ghost/bootstrap-socket/test/connect-and-send.test.js rename to ghost/bootstrap-socket/test/bootstrap-socket.test.js index b7cbff9c86..eda17b5ec3 100644 --- a/ghost/bootstrap-socket/test/connect-and-send.test.js +++ b/ghost/bootstrap-socket/test/bootstrap-socket.test.js @@ -2,10 +2,10 @@ // const testUtils = require('./utils'); require('./utils'); -const connectAndSend = require('../lib/connect-and-send'); +const bootstrapSocket = require('../lib/bootstrap-socket'); describe('Connect and send', function () { it('Resolves a promise for a bad call', function () { - connectAndSend().should.be.fulfilled(); + bootstrapSocket.connectAndSend().should.be.fulfilled(); }); });