Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 673d216

Browse files
1 parent 29c6bb1 commit 673d216

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

test/transfer-manager.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,22 @@ 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 = (
188+
path: string,
189+
options: UploadManyFilesOptions
190+
) => {
191+
return expected[callCount++];
189192
};
190-
await transferManager.uploadManyFiles(paths, {customDestinationBuilder: transformationFunc});
193+
await transferManager.uploadManyFiles(paths, {
194+
customDestinationBuilder: transformationFunc,
195+
});
191196
});
192197
});
193198

0 commit comments

Comments
 (0)