LazxObservableTestHelpers extension
Testing helpers for LazxObservable types (LazxData, LazxState, LazxDerivedData).
Provides waitForState and expectStateSequence to simplify async state assertions in tests.
Import via package:lazx/lazx_testing.dart — never bundled in production.
Methods
-
expectStateSequence(
List< LxState> expected, {Duration timeout = const Duration(seconds: 5)}) → Future<void> -
Available on LazxObservable, provided by the LazxObservableTestHelpers extension
Verifies that the state stream emits exactlyexpectedin order. -
waitForState(
LxState targetState, {Duration timeout = const Duration(seconds: 5)}) → Future< void> -
Available on LazxObservable, provided by the LazxObservableTestHelpers extension
Completes whentargetStateis observed on the state stream.