fix(ivy): rethrow event handler errors in tests (#28707)

Currently errors thrown inside event handler in Ivy are caught and forwarded to the `ErrorHandler`, however this means that if they happen during a unit test, the test won't fail. These changes add a test-specific `ErrorHandler` that throws the error rather than logging it out.

PR Close #28707
This commit is contained in:
Kristiyan Kostadinov
2019-02-13 22:06:42 +01:00
committed by Miško Hevery
parent 83fd66d1d0
commit 63e5d2787b
2 changed files with 11 additions and 0 deletions

View File

@ -985,6 +985,10 @@ window.testBlocklist = {
"error": "Error: Expected mat-slide-toggle-thumb-container to contain 'mat-dragging'.",
"notes": "Unknown"
},
"MatSlideToggle without forms custom action configuration should not change value on click when click action is noop": {
"error": "TypeError: this._inputElement is undefined",
"notes": "Unknown"
},
"MatDrawer methods should be able to open": {
"error": "Error: Expected 0 to be 1.",
"notes": "Unknown"