We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd324d2 commit e4a31bdCopy full SHA for e4a31bd
test/effects.js
@@ -31,15 +31,16 @@ QUnit.test( "jQuery.easing", function( assert ) {
31
32
div.appendTo( "#qunit-fixture" );
33
34
- expectWarning( assert, "easing", function() {
35
- div.animate( { width: 20 }, {
36
- duration: 100,
37
- easing: "test",
38
- complete: function() {
39
- assert.equal( lastP, 1 );
40
- animComplete();
41
- }
42
- } );
+ // Can't use expectWarning since this is async
+ jQuery.migrateReset();
+ div.animate( { width: 20 }, {
+ duration: 100,
+ easing: "test",
+ complete: function() {
+ assert.equal( lastP, 1, "easing" );
+ assert.equal( jQuery.migrateWarnings.length, 1, "warned" );
+ animComplete();
43
+ }
44
} );
45
46
0 commit comments