Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Commit

Permalink
fix(wrapRoot): Import RO ActionsObservable/EPIC_END from public inter…
Browse files Browse the repository at this point in the history
…face

This fixes issue caused by RO change of file structure.
  • Loading branch information
BerkeleyTrue committed Apr 19, 2017
1 parent 0ea49be commit f23df1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/wrap-root-epic.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import invariant from 'invariant';
import { EmptyObservable } from 'rxjs/observable/EmptyObservable';
import { Subject } from 'rxjs/Subject';
import { Subscriber } from 'rxjs/Subscriber';
import { EPIC_END } from 'redux-observable/lib/EPIC_END';
import { ActionsObservable } from 'redux-observable/lib/ActionsObservable.js';
import { ActionsObservable, EPIC_END } from 'redux-observable';
import debug from 'debug';

import {
Expand Down
5 changes: 3 additions & 2 deletions test/wrap-root-epic.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ test(
'wrappedEpic(actions) => results will emit actions',
t => {
const wrappedEpic = wrapRootEpic(
() => ActionsObservable.of({ type: 'FOO' })
actions => actions.mapTo({ type: 'FOO' })
);
return wrappedEpic(ActionsObservable.of({ type: 'BAR' }))

return wrappedEpic(ActionsObservable.of({ type: 'BAR' }).delay(1))
.map(action => {
t.is(action.type, 'FOO');
});
Expand Down

0 comments on commit f23df1e

Please sign in to comment.