We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 213d6cd commit 50077aaCopy full SHA for 50077aa
lib/vows/suite.js
@@ -107,6 +107,8 @@ this.Suite.prototype = new(function () {
107
tests = batch.tests,
108
promise = batch.promise = new(events.EventEmitter);
109
110
+ var that = this;
111
+
112
batch.status = 'begin';
113
114
// The test runner, it calls itself recursively, passing the
@@ -169,6 +171,7 @@ this.Suite.prototype = new(function () {
169
171
// Create a new evaluation context,
170
172
// inheriting from the parent one.
173
var env = Object.create(ctx.env);
174
+ env.suite = that;
175
176
// Holds the current test or context
177
var vow = Object.create({
0 commit comments