Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kornicameister committed Jan 24, 2022
1 parent 1dc859e commit 5ba881b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-lambda/test/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ describe('function', () => {
deadLetterQueue: dlQueue,
});

expect(stack).toHaveResource('AWS::IAM::Policy', {
const tpl = Template.fromStack(stack);
tpl.hasResourceProperties('AWS::IAM::Policy', {
PolicyDocument: {
Statement: [
{
Expand All @@ -713,8 +714,7 @@ describe('function', () => {
Version: '2012-10-17',
},
});

expect(stack).toHaveResource('AWS::Lambda::Function', {
tpl.hasResourceProperties('AWS::Lambda::Function', {
DeadLetterConfig: {
TargetArn: {
Ref: 'DeadLetterQueue9F481546',
Expand Down

0 comments on commit 5ba881b

Please sign in to comment.