Skip to content

Commit e18f497

Browse files
committed
lint
1 parent 29c6bb1 commit e18f497

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/transfer-manager.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,20 @@ describe('Transfer Manager', () => {
177177

178178
it('allows the user to apply a custom destination transformation when supplied a custom function', async () => {
179179
const paths = ['a', 'b', 'foo/bar', 'bar.txt'];
180-
const expected = ['foo/a', 'b/bar', 'foo/foo/bar', 'bar.txt/bar']
180+
const expected = ['foo/a', 'b/bar', 'foo/foo/bar', 'bar.txt/bar'];
181181
sandbox.stub(bucket, 'upload').callsFake((path, options) => {
182182
const uploadOpts = options as UploadOptions;
183183
assert(expected.includes(uploadOpts.destination as string));
184184
});
185185

186186
let callCount = 0;
187-
const transformationFunc = (path: string, options: UploadManyFilesOptions) => {
188-
return expected[callCount++]
187+
const transformationFunc = (path: string) => {
188+
assert.strictEqual(path, paths[callCount]);
189+
return expected[callCount++];
189190
};
190-
await transferManager.uploadManyFiles(paths, {customDestinationBuilder: transformationFunc});
191+
await transferManager.uploadManyFiles(paths, {
192+
customDestinationBuilder: transformationFunc,
193+
});
191194
});
192195
});
193196

0 commit comments

Comments
 (0)