1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-14 09:52:09 +03:00
Ghost/core/test/unit/server_spec.js
Harry Wolff 469aaa398c Add jscs task to grunt file and clean up files to adhere to jscs rules.
resolves 

- updates all files to conform to style settings.
2014-09-17 21:44:29 -04:00

22 lines
713 B
JavaScript

/*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) {
should(response).equal(undefined);
should(body).equal(undefined);
should(error).not.equal(undefined);
should(error.code).equal('ECONNREFUSED');
done();
});
});
});