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

Constructors

TestErrorObserver()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
observe(Object error, StackTrace stackTrace, ReduxAction<St> action, Store store) bool
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited