Edge.debug = true; EdgeFrame.debug = true; describe('Edge', function() { describe('#connect()', function() { after(() => { Edge.disconnect(); }); it('should open the connection', function() { return Edge.connect() .then(() => { chai.assert.isNotNull(Edge._conn); }); }); }); describe('#disconnect()', function() { it('should close the connection', function() { Edge.disconnect(); chai.assert.isNull(Edge._conn); }); }); });