UNPKG

natezimmer_bacstack

Version:

A BACnet protocol stack written in pure JavaScript.

19 lines (16 loc) 605 B
'use strict'; const expect = require('chai').expect; const utils = require('./utils'); describe('bacstack - removeListElement integration', () => { it('should return a timeout error if no device is available', (next) => { const client = new utils.bacnetClient({apduTimeout: 200}); client.removeListElement('127.0.0.1', {type: 19, instance: 100}, {id: 80, index: 0}, [ {type: 1, value: true} ], (err, value) => { expect(err.message).to.eql('ERR_TIMEOUT'); expect(value).to.eql(undefined); client.close(); next(); }); }); });