UNPKG

natezimmer_bacstack

Version:

A BACnet protocol stack written in pure JavaScript.

17 lines (14 loc) 567 B
'use strict'; const expect = require('chai').expect; const utils = require('./utils'); describe('bacstack - writeProperty integration', () => { it('should return a timeout error if no device is available', (next) => { const client = new utils.bacnetClient({apduTimeout: 200}); client.writeProperty('127.0.0.1', {type: 8, instance: 44301}, 28, [{type: 4, value: 100}], (err, value) => { expect(err.message).to.eql('ERR_TIMEOUT'); expect(value).to.eql(undefined); client.close(); next(); }); }); });