Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactor event-emitter.js to export 1 thing.

Also, rename events.js to event-emitter.js.
  • Loading branch information...
commit 951a04621d0de69136821f4687f00282579cb181 1 parent 56ce7bc
@reid reid authored
View
2  lib/cli.js
@@ -23,7 +23,7 @@ var hubClient = require("./client");
var getLocalIP = require("./ip").getLocalIP;
-var YetiEventEmitter2 = require("./events").EventEmitter2;
+var YetiEventEmitter2 = require("./event-emitter");
var good = "";
var bad = "";
View
2  lib/configuration.js
@@ -4,7 +4,7 @@ var util = require("util");
var path = require("path");
var fs = require("graceful-fs");
var ProtoList = require("proto-list");
-var EventEmitter2 = require("./events").EventEmitter2;
+var EventEmitter2 = require("./event-emitter");
// Node v0.8 & v0.6 APIs.
var existsSync = fs.existsSync || path.existsSync;
View
2  lib/events.js → lib/event-emitter.js
@@ -109,4 +109,4 @@ YetiEventEmitter2.prototype.printLogEventsForLevel = function (name, loglevel) {
}
};
-exports.EventEmitter2 = YetiEventEmitter2;
+module.exports = YetiEventEmitter2;
View
2  lib/hub/agent-group.js
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var parseUA = require("./ua");
View
2  lib/hub/agent-manager.js
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var Agent = require("./agent");
View
2  lib/hub/agent.js
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var parseUA = require("./ua");
View
2  lib/hub/batch.js
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var TestServer = require("./test-server");
View
2  lib/hub/index.js
@@ -13,7 +13,7 @@ var urlParser = require("url");
var EchoEcho = require("echoecho").EchoEcho;
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
View
2  test/lib/streams.js
@@ -5,7 +5,7 @@
*/
var util = require("util");
-var EventEmitter2 = require("../../lib/events").EventEmitter2;
+var EventEmitter2 = require("../../lib/event-emitter");
var DEBUG = process.env.YETI_MOCK_DEBUG;
View
2  test/unit/webdriver-agent.js
@@ -7,7 +7,7 @@ var mocks = require("mocks");
var util = require("util");
var EventYoshi = require("eventyoshi");
-var EventEmitter2 = require("../../lib/events").EventEmitter2;
+var EventEmitter2 = require("../../lib/event-emitter");
function createIpMock(ipAddress) {
return {
Please sign in to comment.
Something went wrong with that request. Please try again.