Created
August 28, 2017 07:17
-
-
Save adrianfaciu/ff2e0c993171e2e94f26462d35dbdc3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('can handle fetching data errors', () => { | |
const source = cold('a', { a: { type: actions.DATA_FETCH } }); | |
const service = createServiceStub(new Error('Error occurred!')); | |
const effects = new AppServiceEffect(new Actions(source), service); | |
const expected = cold('a', { a: { type: actions.DATA_FETCH_FAILED } }); | |
expect(effects.fetchAppData$).toBeObservable(expected); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment