Remove commands array from Adaptor base class
This commit is contained in:
parent
6a0a17eca3
commit
75c8d47676
|
@ -27,5 +27,3 @@ var Adaptor = module.exports = function Adaptor(opts) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Utils.subclass(Adaptor, Basestar);
|
Utils.subclass(Adaptor, Basestar);
|
||||||
|
|
||||||
Adaptor.prototype.commands = [];
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ var Loopback;
|
||||||
|
|
||||||
module.exports = Loopback = function Loopback() {
|
module.exports = Loopback = function Loopback() {
|
||||||
Loopback.__super__.constructor.apply(this, arguments);
|
Loopback.__super__.constructor.apply(this, arguments);
|
||||||
this.commands = ['ping'];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Utils.subclass(Loopback, Adaptor);
|
Utils.subclass(Loopback, Adaptor);
|
||||||
|
|
|
@ -18,9 +18,5 @@ describe("Adaptor", function() {
|
||||||
it("sets @connection to the provided connection", function() {
|
it("sets @connection to the provided connection", function() {
|
||||||
expect(adaptor.connection).to.be.eql(connection);
|
expect(adaptor.connection).to.be.eql(connection);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("sets @commands to an empty array by default", function() {
|
|
||||||
expect(adaptor.commands).to.be.eql([]);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue