Skip to content
Permalink
Browse files

[SQUASH]: Don't use .catch()

  • Loading branch information
dmethvin committed Dec 1, 2015
1 parent 2a6671d commit 54391c44b16710276e14b1a49a37ef1963ab3c67
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/deferred.js
@@ -540,11 +540,11 @@ QUnit[ window.console ? "test" : "skip" ]( "jQuery.Deferred.exceptionHook", func
defer.then( function() {
// Should get an error
jQuery.barf();
} ).catch( jQuery.noop ),
} ).then( null, jQuery.noop ),
defer.then( function() {
// Should NOT get an error
throw new Error( "Make me a sandwich" );
} ).catch( jQuery.noop )
} ).then( null, jQuery.noop )
).then( function( ) {
window.console.warn = oldWarn;
done();

0 comments on commit 54391c4

Please sign in to comment.
You can’t perform that action at this time.