Skip to content

Add support for integrating with external reporting #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add check for warning as Errors
  • Loading branch information
sullivanst committed May 27, 2016
commit 02c4f38626fde9a0e1fd6dc6ae0d9a811f7bda2c
1 change: 1 addition & 0 deletions test/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function expectWarning( name, expected, fn ) {
// Simple numeric equality assertion for warnings matching an explicit count
} else if ( expected && jQuery.migrateWarnings.length === expected ) {
equal( jQuery.migrateWarnings.length, expected, name + ": warned" );
equal( jQuery.migrateWarnings.asErrors.length, expected, name + ": warned as Errors" );

// Simple ok assertion when we saw at least one warning and weren't looking for an explict count
} else if ( !expected && jQuery.migrateWarnings.length ) {
Expand Down