mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
add some tests for notification sagas
This commit is contained in:
+2
-1
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user