diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 761885ccb..0ad86e0d5 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1526,7 +1526,8 @@ module( "ajax", { ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, { setup: function() { - jQuery.ajaxPrefilter(function( options, _, jqXHR ) { + // Ensure prefix does not throw an error + jQuery.ajaxPrefilter("+prefix *", function( options, _, jqXHR ) { if ( options.abortInPrefilter ) { jqXHR.abort(); }