Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add assertion helper to runner -- is this the right place?

  • Loading branch information...
commit 034e190f568f6cc70cd59a0988d694592b714bd4 1 parent 124f649
@deanlandolt deanlandolt authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/runner.js
View
11 lib/runner.js
@@ -81,3 +81,14 @@ if(typeof process !== "undefined"){
}
});
}
+
+
+exports.assert = {};
+var assert = require("assert");
+for (var key in assert) exports.assert[key] = assert[key]
+exports.assert.equal = function(actual, expected, message) {
+ if (typeof message === "undefined") {
+ message = "got " + actual + ", expected " + expected;
+ }
+ return assert.equal(actual, expected, message);
+};
Please sign in to comment.
Something went wrong with that request. Please try again.