TestErrorObserver<St> class
During tests, use this error observer if you want all errors to be thrown, and not swallowed, including UserExceptions. You should probably use this in all tests that you don't expect to throw any errors, including UserExceptions.
On the contrary, when you are actually testing that some code throws
specific UserExceptions, you should NOT use this error observer, but
should instead let the UserExceptions go silently to the error queue
(the errors
field in the store), and then assert that the queue
actually contains those errors.
- Implemented types
-
- ErrorObserver<
St>
- ErrorObserver<
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
Object error, StackTrace stackTrace, ReduxAction< St> action, Store store) → bool -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited