Skip to content

Commit

Permalink
chore(api-gateway): fix resource name in lambda-api.test.ts causing n…
Browse files Browse the repository at this point in the history
…o-op test (#26457)

Test was a no-op due to the typo.
  • Loading branch information
danielhochman authored Jul 21, 2023
1 parent ac9bb1a commit 9d9daba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe('lambda api', () => {
// THEN
const template = Template.fromStack(stack);
// Ensure that all methods have "AWS_PROXY" integrations.
const methods = template.findResources('AWS::ApiGateway::Mathod');
const methods = template.findResources('AWS::ApiGateway::Method');
const hasProxyIntegration = Match.objectLike({ Integration: Match.objectLike({ Type: 'AWS_PROXY' }) });
for (const method of Object.values(methods)) {
expect(hasProxyIntegration.test(method)).toBeTruthy();
Expand Down

0 comments on commit 9d9daba

Please sign in to comment.