Skip to content

Commit

Permalink
Update packages/aws-cdk-lib/aws-s3/test/bucket.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Aayush thapa <84202325+aaythapa@users.noreply.github.com>
  • Loading branch information
GavinZZ and aaythapa authored May 28, 2024
1 parent 001137c commit f5aea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-s3/test/bucket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ describe('bucket', () => {

expect(() => new s3.Bucket(stack, 'Bucket', {
publicReadAccess: true,
})).toThrow('Cannot use \'publicReadAccess\' property');
})).toThrow('Cannot use \'publicReadAccess\' property on a bucket without allowing bucket-level public access through \'blockPublicAceess\' property.');
});

test('bucket with enabled block public access setting to throw error msg', () => {
Expand Down

0 comments on commit f5aea05

Please sign in to comment.