Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Unit testing is important part of every software. For this reason ng-state
has simplified test bed setup. In order to setup unit test you need to make few simple actions.
Tell react-state-rxjs
that actions are going to run in testing mode:
beforeEach(() => {
ReactStateTestBed.setTestEnvironment(new ImmerDataStrategy());
});
beforeEach(() => {
ReactStateTestBed.setTestEnvironment(new ImmutableJsDataStrategy());
});