flying-squid/tests/index.js
2015-08-24 10:25:34 -04:00

15 lines
No EOL
466 B
JavaScript

var boot = require('../app').boot,
shutdown = require('../app').shutdown,
port = require('../app').port,
describe("Server", function() {
if("Is running", function(done) {
var client = net.Socket();
client.connect(25565, '127.0.0.1', function() {
client.close(); // or whatever the method to close the socket;
done();
});
client.on('error', function(err) {
done(err);
})
});