Skip to content

Commit

Permalink
feat(suite): bind this to the current test
Browse files Browse the repository at this point in the history
Bind this to the current test at execution.
  • Loading branch information
robinboehm committed Dec 13, 2013
1 parent c597894 commit 3715705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dalek/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ Suite.prototype = {
this.options.beforeEach();
}
// generate an instance of the test & start it
return testFunction(this.getTestInstance(testName));
var test = this.getTestInstance(testName);
return testFunction.apply(test,[test]);
},

/**
Expand Down

0 comments on commit 3715705

Please sign in to comment.