Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
moelasmar committed Jun 1, 2024
1 parent 9280a28 commit 9ea0b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-apigateway/test/method.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,9 @@ describe('method', () => {

expect(() => {
restApi.root.addMethod('ANY', undefined, {
authorizationType: apigw.AuthorizationType.NONE,
authorizationType: apigw.AuthorizationType.IAM,
});
}).toThrow(/Authorization type is set to NONE which is different from what is required by the authorizer/);
}).toThrow(/Authorization type is set to AWS_IAM which is different from what is required by the authorizer/);

});

Expand Down

0 comments on commit 9ea0b5c

Please sign in to comment.