Skip to content

Commit

Permalink
fix(testkit): fix typo in OnOperationArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyoa committed Jul 11, 2024
1 parent cdd6c11 commit 48465d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils/testkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function sleep(ms: number) {
return new Promise<void>((resolve) => setTimeout(resolve, ms));
}

export type OnOpeartionArgs<
export type OnOperationArgs<
RequestRaw = unknown,
RequestContext = unknown,
Context extends OperationContext = undefined,
Expand All @@ -21,7 +21,7 @@ export interface TestKit<
Context extends OperationContext = undefined,
> {
waitForOperation(): Promise<
OnOpeartionArgs<RequestRaw, RequestContext, Context>
OnOperationArgs<RequestRaw, RequestContext, Context>
>;
}

Expand All @@ -33,7 +33,7 @@ export function injectTestKit<
opts: Partial<HandlerOptions<RequestRaw, RequestContext, Context>> = {},
): TestKit<RequestRaw, RequestContext, Context> {
const onOperation =
queue<OnOpeartionArgs<RequestRaw, RequestContext, Context>>();
queue<OnOperationArgs<RequestRaw, RequestContext, Context>>();
const origOnOperation = opts.onOperation;
opts.onOperation = async (...args) => {
onOperation.add(args);
Expand Down

0 comments on commit 48465d3

Please sign in to comment.