Skip to content

Commit

Permalink
runner.spec.js: parent is required for test/hook II
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Dec 13, 2018
1 parent 9feb3bb commit c42a2a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/runner.spec.js
Expand Up @@ -439,6 +439,7 @@ describe('Runner', function() {

it('should prettify the stack-trace', function(done) {
var hook = new Hook();
hook.parent = suite;
var err = new Error();
// Fake stack-trace
err.stack = stack.join('\n');
Expand All @@ -460,6 +461,7 @@ describe('Runner', function() {

it('should display the full stack-trace', function(done) {
var hook = new Hook();
hook.parent = suite;
var err = new Error();
// Fake stack-trace
err.stack = stack.join('\n');
Expand Down

0 comments on commit c42a2a9

Please sign in to comment.