Merge pull request #349 from ahdncordeiro/master

Correcting the test Adaptor and Driver
This commit is contained in:
Ron Evans 2016-08-26 12:16:22 +02:00 committed by GitHub
commit 0ba0301318
2 changed files with 17 additions and 0 deletions

View File

@ -9,5 +9,14 @@ var TestAdaptor = module.exports = function TestAdaptor() {
Utils.subclass(TestAdaptor, Adaptor); Utils.subclass(TestAdaptor, Adaptor);
TestAdaptor.prototype.connect = function(callback) {
callback();
};
TestAdaptor.prototype.disconnect = function(callback) {
callback();
};
TestAdaptor.adaptors = ["test"]; TestAdaptor.adaptors = ["test"];
TestAdaptor.adaptor = function(opts) { return new TestAdaptor(opts); }; TestAdaptor.adaptor = function(opts) { return new TestAdaptor(opts); };

View File

@ -9,5 +9,13 @@ var TestDriver = module.exports = function TestDriver() {
Utils.subclass(TestDriver, Driver); Utils.subclass(TestDriver, Driver);
TestDriver.prototype.start = function(callback) {
callback();
};
TestDriver.prototype.halt = function(callback) {
callback();
};
TestDriver.drivers = ["test"]; TestDriver.drivers = ["test"];
TestDriver.driver = function(opts) { return new TestDriver(opts); }; TestDriver.driver = function(opts) { return new TestDriver(opts); };