mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 12:44:57 +03:00
8fd272476b
closes #6505 -Removed all of the /*jshint expr:true*/ comments from the tests -Removed all of the should.equal(true, true) statements from the tests -Removed should from the greenkeeper ignores
22 lines
679 B
JavaScript
22 lines
679 B
JavaScript
/*globals describe, it*/
|
|
var should = require('should'),
|
|
http = require('http'),
|
|
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) {
|
|
http.get(url, function () {
|
|
done('This request should not have worked');
|
|
}).on('error', function (error) {
|
|
should(error).not.equal(undefined);
|
|
should(error.code).equal('ECONNREFUSED');
|
|
|
|
done();
|
|
});
|
|
});
|
|
});
|