testing/src/ny_state_test_helpers library

Classes

NyStateTestHelpers
Helpers for testing EventBus-driven state management in NyPage and NyState.

Functions

expectStateAction(String stateName, String action, {int? times}) → void
Assert that a state action was fired to the given stateName.
expectStateData(WidgetTester tester, Finder finder, dynamic matcher) → void
Assert the stateData of a NyPage or NyState widget.
expectStateUpdated(String stateName, {int? times}) → void
Assert that a state update was fired to the given stateName.
fireStateAction(String stateName, String action, {dynamic data}) → void
Fire a state action to a widget identified by stateName.
fireStateUpdate(String stateName, {dynamic data}) → void
Fire an UpdateState event to a widget identified by stateName.