bacstack
Version:
A BACnet protocol stack written in pure JavaScript.
16 lines (13 loc) • 447 B
JavaScript
;
const utils = require('./utils');
describe('bacstack - getAlarmSummary integration', () => {
it('should return a timeout error if no device is available', (next) => {
const client = new utils.bacnetClient({apduTimeout: 200});
client.getAlarmSummary('127.0.0.1', (err, value) => {
expect(err.message).toEqual('ERR_TIMEOUT');
expect(value).toBeUndefined();
client.close();
next();
});
});
});