Skip to content

Commit

Permalink
ability to export batch/suite
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 4, 2010
1 parent 073e875 commit 0e3b661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,8 @@ this.Suite.prototype = new(function () {
};

this.runParallel = function () {};

this.export = function (exports) {
return exports.vows = this;
};
});
2 changes: 1 addition & 1 deletion test/vows-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,4 @@ vows.describe("Vows").addVows({
"A 3rd test suite": {
"should run last": function () {}
}
});
}).export(this);

0 comments on commit 0e3b661

Please sign in to comment.