node-hue-api
Version:
Philips Hue API Library for Node.js
24 lines (18 loc) • 637 B
text/typescript
import { expect } from 'chai';
import { mDNSSearch } from './mDNS';
describe('mDNS', function () {
this.timeout(40 * 1000);
let mdns: mDNSSearch;
beforeEach(() => {
mdns = new mDNSSearch();
});
it('should discover a bridge on the network', async () => {
// const results = await mdns.search(15 * 1000);
// const results = await mdns.search();
const results = await mdns.search(10000, true);
expect(results).to.be.instanceOf(Array);
expect(results).to.have.length.greaterThan(0);
expect(results[0]).to.have.property('id');
expect(results[0]).to.have.property('internalipaddress');
});
});