Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var mediator;
beforeEach(function() {
mediator = new EventEmitter2({wildcard: false});
require('../src/server/creator.js')(mediator);
require('../src/server/configurer.js')(mediator);
});
it('should create the server', function(done) {
mediator.once('server.created', function(server) {
server.should.exist;
done();
});
mediator.emit('boot.ready');
});
it('should configure the server', function(done) {
mediator.once('server.configured', function(server) {
server.should.exist;
done();
});
mediator.emit('boot.ready');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment