Skip to content

Commit

Permalink
fix(Effects): Wrap testing source in an Actions observable (#121)
Browse files Browse the repository at this point in the history
Closes #117
  • Loading branch information
MikeRyanDev authored and brandonroberts committed Jul 19, 2017
1 parent 4b20e3f commit bfdb83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/effects/testing/src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export function provideMockActions(
provide: Actions,
useFactory: (): Observable<any> => {
if (typeof factoryOrSource === 'function') {
return defer(factoryOrSource);
return new Actions(defer(factoryOrSource));
}

return factoryOrSource;
return new Actions(factoryOrSource);
},
};
}

0 comments on commit bfdb83b

Please sign in to comment.