(x, errorInfo)
| 755 | const theError = new Error('Test'); |
| 756 | const loggedErrors = []; |
| 757 | function onError(x, errorInfo) { |
| 758 | loggedErrors.push(x); |
| 759 | return 'Hash of (' + x.message + ')'; |
| 760 | } |
| 761 | const expectedDigest = onError(theError); |
| 762 | loggedErrors.length = 0; |
| 763 |
no test coverage detected