Merge pull request #349 from ahdncordeiro/master
Correcting the test Adaptor and Driver
This commit is contained in:
commit
0ba0301318
|
@ -9,5 +9,14 @@ var TestAdaptor = module.exports = function TestAdaptor() {
|
|||
|
||||
Utils.subclass(TestAdaptor, Adaptor);
|
||||
|
||||
|
||||
TestAdaptor.prototype.connect = function(callback) {
|
||||
callback();
|
||||
};
|
||||
|
||||
TestAdaptor.prototype.disconnect = function(callback) {
|
||||
callback();
|
||||
};
|
||||
|
||||
TestAdaptor.adaptors = ["test"];
|
||||
TestAdaptor.adaptor = function(opts) { return new TestAdaptor(opts); };
|
||||
|
|
|
@ -9,5 +9,13 @@ var TestDriver = module.exports = function TestDriver() {
|
|||
|
||||
Utils.subclass(TestDriver, Driver);
|
||||
|
||||
TestDriver.prototype.start = function(callback) {
|
||||
callback();
|
||||
};
|
||||
|
||||
TestDriver.prototype.halt = function(callback) {
|
||||
callback();
|
||||
};
|
||||
|
||||
TestDriver.drivers = ["test"];
|
||||
TestDriver.driver = function(opts) { return new TestDriver(opts); };
|
||||
|
|
Loading…
Reference in New Issue