N°5621 Move jquery-migrate 3.1.0 to NPM

This commit is contained in:
Pierre Goiffon
2024-03-07 15:19:35 +01:00
parent c24c1ba73c
commit 9fa036df7e
71 changed files with 14252 additions and 4 deletions

24
node_modules/jquery-migrate/test/ajax.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
QUnit.module( "ajax" );
QUnit.test( "jQuery.ajax() deprecations on jqXHR", function( assert ) {
assert.expect( 3 );
var done = assert.async();
expectWarning( assert, ".success(), .error(), .compete() calls", 3, function() {
jQuery.ajax( "/not-found.404" )
.success( jQuery.noop )
.error( function( jQXHR ) {
// Local file errors returns 0, pretend it's a 404
assert.equal( jQXHR.status || 404, 404, "ajax error" );
} )
.complete( function() {
assert.ok( true, "ajax complete" );
// Wait for expectWarning to complete
setTimeout(done, 1);
} );
} );
} );