Skip to content

Commit eeacfbc

Browse files
committed
chore: Resolve @types/aws-lambda upgrade issues in main package
1 parent 9468b53 commit eeacfbc

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/typescript/src/handlers/handlers.test.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
APIGatewayProxyEventV2,
44
APIGatewayProxyResult,
55
APIGatewayProxyResultV2,
6+
APIGatewayEventIdentity,
67
Context,
78
} from "aws-lambda";
89
import {
@@ -108,22 +109,9 @@ function createMockAPIGatewayProxyEvent(
108109
requestTimeEpoch: 1672531200,
109110
authorizer: {},
110111
identity: {
111-
cognitoIdentityPoolId: null,
112-
accountId: null,
113-
cognitoIdentityId: null,
114-
caller: null,
115112
sourceIp: "127.0.0.1",
116-
principalOrgId: null,
117-
accessKey: null,
118-
cognitoAuthenticationType: null,
119-
cognitoAuthenticationProvider: null,
120-
userArn: null,
121113
userAgent: "test-agent",
122-
user: null,
123-
apiKey: null,
124-
apiKeyId: null,
125-
clientCert: null,
126-
},
114+
} as APIGatewayEventIdentity,
127115
resourceId: "test-resource",
128116
resourcePath: "/test",
129117
},

0 commit comments

Comments
 (0)