1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-26 12:21:36 +03:00
Ghost/ghost/bootstrap-socket/test/bootstrap-socket.test.js
Hannah Wolfe a01d44fa6a Refactored bootstrap-socket API for testability
- this makes it much easier to stub this behaviour in tests
- also makes more sense
2020-08-09 17:15:46 +01:00

12 lines
350 B
JavaScript

// Switch these lines once there are useful utils
// const testUtils = require('./utils');
require('./utils');
const bootstrapSocket = require('../lib/bootstrap-socket');
describe('Connect and send', function () {
it('Resolves a promise for a bad call', function () {
bootstrapSocket.connectAndSend().should.be.fulfilled();
});
});