Skip to content

Commit

Permalink
Test: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Sep 3, 2014
1 parent 5cbe4ec commit 4612063
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,12 @@ Test.prototype = {

if ( config.notrycatch ) {
this.callback.call( this.testEnvironment, this.assert );
this.callbackRuntime = now() - this.callbackStarted;
return;
}

try {
this.callback.call( this.testEnvironment, this.assert );
this.callbackRuntime = now() - this.callbackStarted;
} catch ( e ) {
this.callbackRuntime = now() - this.callbackStarted;

this.pushFailure( "Died on test #" + ( this.assertions.length + 1 ) + " " + this.stack + ": " + ( e.message || e ), extractStacktrace( e, 0 ) );

// else next test will carry the responsibility
Expand Down

0 comments on commit 4612063

Please sign in to comment.