nupnp.test.js 382 Bytes
'use strict';

const expect = require('chai').expect
  , nupnp = require('./nupnp')
;

describe('N-UPnP', () => {

  it('should discover a bridge on the network', async () => {
    const results = await nupnp.nupnp();

    expect(results).to.be.instanceOf(Array);
    expect(results[0]).to.have.property('id');
    expect(results[0]).to.have.property('internalipaddress');
  });
});