0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/test/unit/server_spec.js

22 lines
713 B
JavaScript
Raw Normal View History

2014-06-04 16:26:03 -05:00
/*globals describe, it*/
/*jshint expr:true*/
var should = require('should'),
request = require('request'),
config = require('../../../config');
describe('Server', function () {
var port = config.testing.server.port,
host = config.testing.server.host,
url = 'http://' + host + ':' + port;
it('should not start a connect server when required', function (done) {
request(url, function (error, response, body) {
2014-06-04 16:26:03 -05:00
should(response).equal(undefined);
should(body).equal(undefined);
should(error).not.equal(undefined);
should(error.code).equal('ECONNREFUSED');
done();
});
});
});