nightwatch-xhr
Version:
An XHR "Listener" for Nightwatch.js
22 lines (16 loc) • 443 B
JavaScript
;
var _client = require('../client');
var util = require('util');
var events = require('events');
function ListenXHR() {
// $FlowFixMe
events.EventEmitter.call(this);
}
util.inherits(ListenXHR, events.EventEmitter);
ListenXHR.prototype.command = function () {
var command = this;
this.api.execute(_client.clientListen, [], function () {
command.emit('complete');
});
};
module.exports = ListenXHR;