We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f78e58 commit 02c4f38Copy full SHA for 02c4f38
test/migrate.js
@@ -19,6 +19,7 @@ function expectWarning( name, expected, fn ) {
19
// Simple numeric equality assertion for warnings matching an explicit count
20
} else if ( expected && jQuery.migrateWarnings.length === expected ) {
21
equal( jQuery.migrateWarnings.length, expected, name + ": warned" );
22
+ equal( jQuery.migrateWarnings.asErrors.length, expected, name + ": warned as Errors" );
23
24
// Simple ok assertion when we saw at least one warning and weren't looking for an explict count
25
} else if ( !expected && jQuery.migrateWarnings.length ) {
0 commit comments