Skip to content

Commit 34ee809

Browse files
Linter fix
Issue: CLDSRV-669
1 parent fdca4e6 commit 34ee809

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

tests/unit/lib/services.spec.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,24 @@ describe('services', () => {
9191
IsTruncated: false,
9292
});
9393

94-
services.findObjectVersionByUploadId(bucketName, objectKey, 'non-existent-upload-id', log, (err, foundVersion) => {
95-
assert.ifError(err);
96-
sinon.assert.calledTwice(getObjectListingStub);
97-
98-
const secondCallParams = getObjectListingStub.getCall(1).args[1];
99-
assert.strictEqual(secondCallParams.keyMarker, 'key-marker');
100-
assert.strictEqual(secondCallParams.versionIdMarker, 'version-marker');
101-
assert.strictEqual(foundVersion, null);
102-
done();
103-
});
94+
services.findObjectVersionByUploadId(bucketName, objectKey, 'non-existent-upload-id',
95+
log, (err, foundVersion) => {
96+
assert.ifError(err);
97+
sinon.assert.calledTwice(getObjectListingStub);
98+
99+
const secondCallParams = getObjectListingStub.getCall(1).args[1];
100+
assert.strictEqual(secondCallParams.keyMarker, 'key-marker');
101+
assert.strictEqual(secondCallParams.versionIdMarker, 'version-marker');
102+
assert.strictEqual(foundVersion, null);
103+
done();
104+
});
104105
});
105106

106107
it('should find a version on the first page of many and stop listing', done => {
107108
const uploadIdToFind = 'the-correct-upload-id';
108109
const correctVersionValue = { uploadId: uploadIdToFind, data: 'this is it' };
109110
const versions = [{ key: objectKey, value: correctVersionValue }];
110-
111+
111112
getObjectListingStub.onFirstCall().yields(null, {
112113
Versions: versions,
113114
IsTruncated: true,

0 commit comments

Comments
 (0)