Skip to content

Commit 5d65cb4

Browse files
committed
put operation related bucket tests lint fix
1 parent 63741d3 commit 5d65cb4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/functional/aws-node-sdk/test/bucket/putBucketLogging.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ describe('PUT bucket logging', () => {
9696
Bucket: bucketName,
9797
BucketLoggingStatus: validLoggingConfig,
9898
}))
99-
.then(() => {
99+
.then(() =>
100100
// Verify the config was set by getting it back
101-
return s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }));
102-
})
101+
s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }))
102+
)
103103
.then(data => {
104104
assert(data.LoggingEnabled);
105105
assert.strictEqual(data.LoggingEnabled.TargetBucket,
@@ -121,10 +121,10 @@ describe('PUT bucket logging', () => {
121121
Bucket: bucketName,
122122
BucketLoggingStatus: validLoggingConfig,
123123
}))
124-
.then(() => {
124+
.then(() =>
125125
// Verify it was enabled
126-
return s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }));
127-
})
126+
s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }))
127+
)
128128
.then(data => {
129129
assert(data.LoggingEnabled);
130130
// Now disable logging
@@ -133,10 +133,10 @@ describe('PUT bucket logging', () => {
133133
BucketLoggingStatus: {},
134134
}));
135135
})
136-
.then(() => {
136+
.then(() =>
137137
// Verify it was disabled
138-
return s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }));
139-
})
138+
s3.send(new GetBucketLoggingCommand({ Bucket: bucketName }))
139+
)
140140
.then(data => {
141141
assert(data);
142142
assert.deepStrictEqual(data.$metadata.httpStatusCode, 200);

0 commit comments

Comments
 (0)