Skip to content

Commit

Permalink
[SQUASH]: Don't use .catch()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Dec 15, 2015
1 parent 2a6671d commit 54391c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/deferred.js
Expand Up @@ -540,11 +540,11 @@ QUnit[ window.console ? "test" : "skip" ]( "jQuery.Deferred.exceptionHook", func
defer.then( function() { defer.then( function() {
// Should get an error // Should get an error
jQuery.barf(); jQuery.barf();
} ).catch( jQuery.noop ), } ).then( null, jQuery.noop ),
defer.then( function() { defer.then( function() {
// Should NOT get an error // Should NOT get an error
throw new Error( "Make me a sandwich" ); throw new Error( "Make me a sandwich" );
} ).catch( jQuery.noop ) } ).then( null, jQuery.noop )
).then( function( ) { ).then( function( ) {
window.console.warn = oldWarn; window.console.warn = oldWarn;
done(); done();
Expand Down

0 comments on commit 54391c4

Please sign in to comment.