cylon/lib/test/test-adaptor.js

23 lines
500 B
JavaScript
Raw Permalink Normal View History

2014-02-27 22:44:53 +08:00
"use strict";
2014-12-16 03:15:29 +08:00
var Adaptor = require("../adaptor"),
Utils = require("../utils");
2014-05-07 09:18:20 +08:00
var TestAdaptor = module.exports = function TestAdaptor() {
TestAdaptor.__super__.constructor.apply(this, arguments);
};
2014-02-27 22:44:53 +08:00
Utils.subclass(TestAdaptor, Adaptor);
2014-02-27 22:44:53 +08:00
TestAdaptor.prototype.connect = function(callback) {
callback();
};
TestAdaptor.prototype.disconnect = function(callback) {
callback();
};
2014-12-16 03:15:29 +08:00
TestAdaptor.adaptors = ["test"];
TestAdaptor.adaptor = function(opts) { return new TestAdaptor(opts); };