Skip to content

Commit 8fb1a56

Browse files
committed
support for multiple arguments passed to sub-topics
1 parent 398443d commit 8fb1a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vows/suite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ this.Suite.prototype = new(function () {
160160
// If we're using the parent topic, no need to
161161
// prepend it to the topics list, or we'll get
162162
// duplicates.
163-
if (! old) ctx.topics.unshift(val);
163+
if (! old) Array.prototype.unshift.apply(ctx.topics, arguments);
164164
});
165165

166166
// Now run the tests, or sub-contexts

0 commit comments

Comments
 (0)