Skip to content

Commit 0e3b661

Browse files
author
cloudhead
committed
ability to export batch/suite
1 parent 073e875 commit 0e3b661

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/vows/suite.js

+4
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,8 @@ this.Suite.prototype = new(function () {
209209
};
210210

211211
this.runParallel = function () {};
212+
213+
this.export = function (exports) {
214+
return exports.vows = this;
215+
};
212216
});

test/vows-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,4 @@ vows.describe("Vows").addVows({
272272
"A 3rd test suite": {
273273
"should run last": function () {}
274274
}
275-
});
275+
}).export(this);

0 commit comments

Comments
 (0)