HasError checks that the observable has produce a specific error.
(err error)
| 141 | |
| 142 | // HasError checks that the observable has produce a specific error. |
| 143 | func HasError(err error) RxAssert { |
| 144 | return newAssertion(func(a *rxAssert) { |
| 145 | a.checkHasRaisedError = true |
| 146 | a.err = err |
| 147 | }) |
| 148 | } |
| 149 | |
| 150 | // HasAnError checks that the observable has produce an error. |
| 151 | func HasAnError() RxAssert { |
searching dependent graphs…