2023-04-18 17:57:16 +02:00
|
|
|
Edge.Client.debug = true;
|
|
|
|
Edge.Frame.debug = true;
|
2023-02-09 12:16:36 +01:00
|
|
|
|
|
|
|
describe('Edge', function() {
|
|
|
|
|
|
|
|
describe('#connect()', function() {
|
|
|
|
after(() => {
|
2023-04-18 17:57:16 +02:00
|
|
|
Edge.Client.disconnect();
|
2023-02-09 12:16:36 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should open the connection', function() {
|
2023-04-18 17:57:16 +02:00
|
|
|
return Edge.Client.connect()
|
2023-02-09 12:16:36 +01:00
|
|
|
.then(() => {
|
2023-04-18 17:57:16 +02:00
|
|
|
chai.assert.isNotNull(Edge.Client._conn);
|
2023-02-09 12:16:36 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('#disconnect()', function() {
|
|
|
|
it('should close the connection', function() {
|
2023-04-18 17:57:16 +02:00
|
|
|
Edge.Client.disconnect();
|
|
|
|
chai.assert.isNull(Edge.Client._conn);
|
2023-02-09 12:16:36 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|