Created
August 28, 2017 15:43
-
-
Save adrianfaciu/61045a4e89e960974b2a84e39bb8dff3 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 data with debounce (mocking debounce)', () => { | |
const source = cold('a', { a: { type: actions.DATA_WITH_DEBOUNCE_FETCH } }); | |
mockObservable(); | |
const effect = new AppTimeEffect(new Actions(source)); | |
const expected = cold('a', { a: { type: actions.DATA_WITH_DEBOUNCE_FETCH_SUCCESS } }); | |
expect(effect.fetchDataWithDebounce$).toBeObservable(expected); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment