Skip to content

Commit 841dd30

Browse files
Update src/test/context-middleware.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c42f501 commit 841dd30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/context-middleware.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ contextMiddleware.use(async (context, next) => {
3434
next();
3535
});
3636

37-
contextMiddleware.use(async (args, next) => {
38-
console.log('Async middleware 2 start with args:', args);
37+
contextMiddleware.use(async (context, next) => {
38+
console.log('Async middleware 2 start with context:', context);
3939
next();
4040
});
4141

42-
contextMiddleware.onComplete((args) => {
43-
console.log('All middlewares completed with args:', args);
42+
contextMiddleware.onComplete((context) => {
43+
console.log('All middlewares completed with context:', context);
4444
});
4545

4646
contextMiddleware.executeAsync({ req: 'value' });

0 commit comments

Comments
 (0)