UNPKG

prisme-flow

Version:

prisme platform flow engine

15 lines (13 loc) 506 B
var expect = require('chai').expect; var utils = require('./utils'); describe('bacstack - writeProperty integration', function() { it('should return a timeout error if no device is available', function(next) { var client = utils.globalBacnetClient; this.timeout(5000); client.writeProperty('127.0.0.1', 8, 44301, 28, 12, [{Tag: 4, Value: 100}], function(err, value) { expect(err).to.eql(new Error('ERR_TIMEOUT')); expect(value).to.eql(undefined); next(); }); }); });