Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adrianfaciu/a5c97758f8e045a3ee1002a5378ed98f to your computer and use it in GitHub Desktop.
Save adrianfaciu/a5c97758f8e045a3ee1002a5378ed98f to your computer and use it in GitHub Desktop.
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