Skip to content

Commit 9d9daba

Browse files
chore(api-gateway): fix resource name in lambda-api.test.ts causing no-op test (#26457)
Test was a no-op due to the typo.
1 parent ac9bb1a commit 9d9daba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-apigateway/test/lambda-api.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('lambda api', () => {
189189
// THEN
190190
const template = Template.fromStack(stack);
191191
// Ensure that all methods have "AWS_PROXY" integrations.
192-
const methods = template.findResources('AWS::ApiGateway::Mathod');
192+
const methods = template.findResources('AWS::ApiGateway::Method');
193193
const hasProxyIntegration = Match.objectLike({ Integration: Match.objectLike({ Type: 'AWS_PROXY' }) });
194194
for (const method of Object.values(methods)) {
195195
expect(hasProxyIntegration.test(method)).toBeTruthy();

0 commit comments

Comments
 (0)