Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure the events modules exist before trying to import the tests

  • Loading branch information...
commit dfcd3bd285ce75d6791ebcc96ef78792ef696582 1 parent 5b42fab
Tom Robinson authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/all-tests.js
View
9 tests/all-tests.js
@@ -7,7 +7,14 @@ exports.testOS = require("./os/all-tests");
exports.testFile = require("./file/all-tests");
exports.testUtil = require("./util/all-tests");
exports.testArgs = require("./args");
-exports.testEvents = require("./events");
+
+try {
+ require("events");
+ exports.testEvents = require("./events");
+} catch (e) {
+ print("Skipping events tests: " + e)
+}
+
exports.testHTML = require("./html");
exports.testGlobal = require("./global");
Please sign in to comment.
Something went wrong with that request. Please try again.