Currently, in order to unit test a chain of interceptions one has to create an instance of the corresponding view model, dispatch an action and indirectly test correct behavior by checking the emitted state. Eiffel should provide a testInterceptions function that allows testing a given chain without a view model by simply returning the resulting Action.
Currently, in order to unit test a chain of interceptions one has to create an instance of the corresponding view model, dispatch an action and indirectly test correct behavior by checking the emitted state. Eiffel should provide a
testInterceptions
function that allows testing a given chain without a view model by simply returning the resultingAction
.