Skip to content

Commit 1d32b99

Browse files
authored
tests(tracer): update docs url for e2e tests (#1559)
1 parent 866837d commit 1d32b99

4 files changed

+8
-10
lines changed

Diff for: packages/tracer/tests/e2e/allFeatures.decorator.test.functionCode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class MyFunctionBase {
5252
Item: { id: `${serviceName}-${event.invocation}-sdkv2` },
5353
})
5454
.promise(),
55-
axios.get('https://docs.powertools.aws.dev/lambda-typescript/latest/', {
55+
axios.get('https://docs.powertools.aws.dev/lambda/typescript/latest/', {
5656
timeout: 5000,
5757
}),
5858
new Promise((resolve, reject) => {

Diff for: packages/tracer/tests/e2e/allFeatures.manual.test.functionCode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const handler = async (
5656
})
5757
.promise();
5858
await axios.get(
59-
'https://docs.powertools.aws.dev/lambda-typescript/latest/',
59+
'https://docs.powertools.aws.dev/lambda/typescript/latest/',
6060
{ timeout: 5000 }
6161
);
6262

Diff for: packages/tracer/tests/e2e/allFeatures.middy.test.functionCode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const testHandler = async (
4646
})
4747
);
4848
await axios.get(
49-
'https://docs.powertools.aws.dev/lambda-typescript/latest/',
49+
'https://docs.powertools.aws.dev/lambda/typescript/latest/',
5050
{ timeout: 5000 }
5151
);
5252

Diff for: packages/tracer/tests/e2e/asyncHandler.decorator.test.functionCode.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class MyFunctionBase {
5656
})
5757
);
5858
await axios.get(
59-
'https://docs.powertools.aws.dev/lambda-typescript/latest/',
59+
'https://docs.powertools.aws.dev/lambda/typescript/latest/',
6060
{ timeout: 5000 }
6161
);
6262

@@ -82,9 +82,8 @@ class MyFunctionWithDecorator extends MyFunctionBase {
8282
// @ts-ignore
8383
public async handler(
8484
event: CustomEvent,
85-
_context: Context,
86-
_callback: Callback<unknown>
87-
): void | Promise<unknown> {
85+
_context: Context
86+
): Promise<unknown> {
8887
return super.handler(event, _context);
8988
}
9089

@@ -105,9 +104,8 @@ export class MyFunctionWithDecoratorAndCustomNamedSubSegmentForMethod extends My
105104
// @ts-ignore
106105
public async handler(
107106
event: CustomEvent,
108-
_context: Context,
109-
_callback: Callback<unknown>
110-
): void | Promise<unknown> {
107+
_context: Context
108+
): Promise<unknown> {
111109
return super.handler(event, _context);
112110
}
113111

0 commit comments

Comments
 (0)