Skip to content

Commit

Permalink
Fix eslint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
sormy committed Jul 30, 2021
1 parent 411597f commit a671778
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/@aws-cdk/aws-s3-deployment/test/bucket-deployment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ test('system metadata is correctly transformed', () => {
// type checking structure that forces to update it if BucketAccessControl changes
// see `--acl` here: https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
const accessControlMap: Record<s3.BucketAccessControl, string> = {
[s3.BucketAccessControl.PRIVATE]: "private",
[s3.BucketAccessControl.PUBLIC_READ]: "public-read",
[s3.BucketAccessControl.PUBLIC_READ_WRITE]: "public-read-write",
[s3.BucketAccessControl.AUTHENTICATED_READ]: "authenticated-read",
[s3.BucketAccessControl.AWS_EXEC_READ]: "aws-exec-read",
[s3.BucketAccessControl.BUCKET_OWNER_READ]: "bucket-owner-read",
[s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL]: "bucket-owner-full-control",
[s3.BucketAccessControl.LOG_DELIVERY_WRITE]: "log-delivery-write"
[s3.BucketAccessControl.PRIVATE]: 'private',
[s3.BucketAccessControl.PUBLIC_READ]: 'public-read',
[s3.BucketAccessControl.PUBLIC_READ_WRITE]: 'public-read-write',
[s3.BucketAccessControl.AUTHENTICATED_READ]: 'authenticated-read',
[s3.BucketAccessControl.AWS_EXEC_READ]: 'aws-exec-read',
[s3.BucketAccessControl.BUCKET_OWNER_READ]: 'bucket-owner-read',
[s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL]: 'bucket-owner-full-control',
[s3.BucketAccessControl.LOG_DELIVERY_WRITE]: 'log-delivery-write',
};

test.each(Object.entries(accessControlMap) as [s3.BucketAccessControl, string][])(
Expand All @@ -376,10 +376,10 @@ test.each(Object.entries(accessControlMap) as [s3.BucketAccessControl, string][]
// THEN
expect(stack).toHaveResource('Custom::CDKBucketDeployment', {
SystemMetadata: {
'acl': systemMetadataKeyword,
acl: systemMetadataKeyword,
},
});
}
},
);

test('expires type has correct values', () => {
Expand Down

0 comments on commit a671778

Please sign in to comment.