diff --git a/lib/test.js b/lib/test.js index 2550a246..a8c090b4 100644 --- a/lib/test.js +++ b/lib/test.js @@ -36,6 +36,10 @@ var getTestArgs = function (name_, opts_, cb_) { }; function Test (name_, opts_, cb_) { + if (! (this instanceof Test)) { + return new Test(name_, opts_, cb_); + } + var args = getTestArgs(name_, opts_, cb_); this.readable = true;