Permalink
Browse files

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

  • Loading branch information...
1 parent 5b42fab commit dfcd3bd285ce75d6791ebcc96ef78792ef696582 Tom Robinson committed Oct 11, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/all-tests.js
View
@@ -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");

0 comments on commit dfcd3bd

Please sign in to comment.