Stop using #fetch here for now, it just breaks tests
This commit is contained in:
parent
5974eb80cd
commit
5ce0d37640
|
@ -22,9 +22,9 @@ var Basestar = require('./basestar'),
|
|||
var Driver = module.exports = function Driver(opts) {
|
||||
opts = opts || {};
|
||||
|
||||
this.name = Utils.fetch(opts, 'name');
|
||||
this.device = Utils.fetch(opts, 'device');
|
||||
this.connection = Utils.fetch(this.device, 'connection');
|
||||
this.name = opts.name;
|
||||
this.device = opts.device;
|
||||
this.connection = this.device.connection;
|
||||
};
|
||||
|
||||
Utils.subclass(Driver, Basestar);
|
||||
|
|
Loading…
Reference in New Issue