Skip to content

Commit 8ee7f96

Browse files
committed
fix: bind the handler in the e2e tests
1 parent 87070d3 commit 8ee7f96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tracer/tests/e2e/allFeatures.decorator.test.functionCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ export class MyFunctionWithDecorator {
8888
}
8989

9090
export const handlerClass = new MyFunctionWithDecorator();
91-
export const handler = handlerClass.handler;
91+
export const handler = handlerClass.handler.bind(handlerClass);

packages/tracer/tests/e2e/asyncHandler.decorator.test.functionCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ export class MyFunctionWithDecorator {
8383
}
8484

8585
export const handlerClass = new MyFunctionWithDecorator();
86-
export const handler = handlerClass.handler;
86+
export const handler = handlerClass.handler.bind(handlerClass);

0 commit comments

Comments
 (0)