2023-02-09 12:16:36 +01:00
|
|
|
Edge.debug = true;
|
2023-04-06 18:16:17 +02:00
|
|
|
EdgeFrame.debug = true;
|
2023-02-09 12:16:36 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|