refactor app directory structure and add tests
This commit is contained in:
24
tests/node_modules/nightwatch/lib/api/client-commands/_locateStrategy.js
generated
vendored
Normal file
24
tests/node_modules/nightwatch/lib/api/client-commands/_locateStrategy.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var util = require('util');
|
||||
var events = require('events');
|
||||
|
||||
function Command() {
|
||||
events.EventEmitter.call(this);
|
||||
}
|
||||
|
||||
util.inherits(Command, events.EventEmitter);
|
||||
|
||||
Command.prototype.command = function(callback) {
|
||||
var self = this;
|
||||
|
||||
this.client.locateStrategy = this.strategy;
|
||||
process.nextTick(function() {
|
||||
if (typeof callback == 'function') {
|
||||
callback.call(self.client.api);
|
||||
}
|
||||
self.emit('complete');
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
module.exports = Command;
|
Reference in New Issue
Block a user