Assert that a certain route can be followed by a TStatebotFsm.
This merely tests that a certain path can be taken through a state-machine. It doesn't assert that the states are moved-through while the machine is working, as with assertRoute.
import { Statebot } from 'statebot'import { routeIsPossible } from 'statebot/assert'let machine = Statebot(...)routeIsPossible(machine, 'walking -> falling -> splatting -> walking')// false
The machine to test the route on.
The route to test as an arrow-delimited string:
"idle -> pending -> success -> done"
Generated using TypeDoc
Assert that a certain route can be followed by a TStatebotFsm.
This merely tests that a certain path can be taken through a state-machine. It doesn't assert that the states are moved-through while the machine is working, as with assertRoute.
Returns
Example