Skip to content

Commit bfdb83b

Browse files
MikeRyanDevbrandonroberts
authored andcommitted
fix(Effects): Wrap testing source in an Actions observable (#121)
Closes #117
1 parent 4b20e3f commit bfdb83b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/effects/testing/src/testing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export function provideMockActions(
1212
provide: Actions,
1313
useFactory: (): Observable<any> => {
1414
if (typeof factoryOrSource === 'function') {
15-
return defer(factoryOrSource);
15+
return new Actions(defer(factoryOrSource));
1616
}
1717

18-
return factoryOrSource;
18+
return new Actions(factoryOrSource);
1919
},
2020
};
2121
}

0 commit comments

Comments
 (0)