We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8543bea commit a59992bCopy full SHA for a59992b
test.js
@@ -1,3 +1,5 @@
1
+'use strict'
2
+
3
const Server = require('mqtt/test/server');
4
5
const AsyncMQTT = require('./');
@@ -19,7 +21,10 @@ function runTests () {
19
21
const client = AsyncMQTT.connect(SERVER_URL);
20
22
23
t.ok(client instanceof AsyncClient, 'Connect returned an AsyncClient');
- client.end();
24
25
+ client.on('connect', () => {
26
+ client.end();
27
+ })
28
});
29
30
test('Should be able to listen on event on client', t => {
0 commit comments