Skip to content

Commit a0dacb7

Browse files
author
cloudhead
committed
Set default for options in run().
Fixes error when running tests directly.
1 parent e27bdfc commit a0dacb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/vows/suite.js

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ this.Suite.prototype = new(function () {
204204
this.run = function (options, callback) {
205205
var that = this, start;
206206

207+
options = options || {};
208+
207209
this.matcher = options.matcher || this.matcher;
208210
this.reporter = options.reporter || this.reporter;
209211

0 commit comments

Comments
 (0)