UNPKG

prisme-flow

Version:

prisme platform flow engine

17 lines (15 loc) 490 B
var expect = require('chai').expect; var utils = require('./utils'); describe('bacstack - whoIs integration', function() { it('should not invoke a event if no device is available', function(next) { var client = utils.globalBacnetClient; this.timeout(5000); client.on('iAm', function(address, deviceId, maxAdpu, segmentation, vendorId) { next(new Erro('Unallowed Callback')); }); setTimeout(function() { next(); }, 3100); client.whoIs(); }); });