add some tests for notification sagas

This commit is contained in:
David Lechner
2021-01-18 17:29:04 -06:00
parent f72c6ad5de
commit da298ab565
2 changed files with 90 additions and 1 deletions
+2 -1
View File
@@ -12,7 +12,7 @@ export class AsyncSaga {
private state: Partial<RootState>;
private task: Task;
public constructor(saga: Saga) {
public constructor(saga: Saga, context?: Record<string, unknown>) {
this.channel = stdChannel();
this.dispatches = [];
this.takers = [];
@@ -25,6 +25,7 @@ export class AsyncSaga {
onError: (e, _i): void => {
throw e;
},
context,
},
saga,
);