Test component with actions
In order to test components with actions you do not need to do anything. Actions instances are kept in array and are assigned automatically to components during their creation:
However sometimes youmight want to assign explicit actions to component. This can be done by calling NgStateTestBed.setActionsToComponent
method with actions
and instance of component:
Last updated
Was this helpful?