Created
August 28, 2017 07:14
-
-
Save adrianfaciu/a5c97758f8e045a3ee1002a5378ed98f 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 fetch app data', () => { | |
const source = cold('a', { a: { type: actions.DATA_FETCH } }); | |
const service = createServiceStub({}); | |
const effects = new AppServiceEffect(new Actions(source), service); | |
const expected = cold('a', { a: { type: actions.DATA_FETCH_SUCCESS } }); | |
expect(effects.fetchAppData$).toBeObservable(expected); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment