diff options
-rw-r--r-- | test/unit/ajax.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 0ad86e0d5..da1f2ce38 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1525,9 +1525,10 @@ module( "ajax", { //----------- jQuery.ajaxPrefilter() ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, { + dataType: "prefix", setup: function() { // Ensure prefix does not throw an error - jQuery.ajaxPrefilter("+prefix *", function( options, _, jqXHR ) { + jQuery.ajaxPrefilter("+prefix", function( options, _, jqXHR ) { if ( options.abortInPrefilter ) { jqXHR.abort(); } |