var nodecast = require('../');
var should = require('should');
require('mocha');

describe('device', function() {
  it('should have all the fields', function(done) {
    var ee = nodecast.find();
    ee.on('error', done);
    ee.once('device', function(device){
      console.log(device.info.modelName);
      if (device.info.modelName !== 'Eureka Dongle') return;
			should.exist(device);
			should.exist(device.address);
			should.exist(device.name);
      should.exist(device.app);
      should.exist(device.info);
			done();
    });
  });
});
var nodecast = require('../');
var should = require('should');
require('mocha');

describe('device', function() {
  it('should have all the fields', function(done) {
    var ee = nodecast.find();
    ee.on('error', done);
    ee.once('device', function(device){
			should.exist(device);
			should.exist(device.address);
			should.exist(device.name);
      should.exist(device.app);
      should.exist(device.info);
			done();
    });
  });
});
test clean filter