Created
August 28, 2017 15:44
-
-
Save adrianfaciu/8aa0da0f22b41822224e88d229439487 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 (test scheduler)', () => { | |
const source = cold('a', { a: { type: actions.DATA_WITH_DEBOUNCE_FETCH } }); | |
mockObservableWithScheduler(getTestScheduler()); | |
const effect = new AppTimeEffect(new Actions(source)); | |
// - is a 10 frame interval, since we use 100 in the effect we use 10 - characters | |
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