diff --git a/test/transfer-manager.ts b/test/transfer-manager.ts index 6aea6aa4c..a0ebcbf76 100644 --- a/test/transfer-manager.ts +++ b/test/transfer-manager.ts @@ -177,17 +177,22 @@ describe('Transfer Manager', () => { it('allows the user to apply a custom destination transformation when supplied a custom function', async () => { const paths = ['a', 'b', 'foo/bar', 'bar.txt']; - const expected = ['foo/a', 'b/bar', 'foo/foo/bar', 'bar.txt/bar'] + const expected = ['foo/a', 'b/bar', 'foo/foo/bar', 'bar.txt/bar']; sandbox.stub(bucket, 'upload').callsFake((path, options) => { const uploadOpts = options as UploadOptions; assert(expected.includes(uploadOpts.destination as string)); }); let callCount = 0; - const transformationFunc = (path: string, options: UploadManyFilesOptions) => { - return expected[callCount++] + const transformationFunc = ( + path: string, + options: UploadManyFilesOptions + ) => { + return expected[callCount++]; }; - await transferManager.uploadManyFiles(paths, {customDestinationBuilder: transformationFunc}); + await transferManager.uploadManyFiles(paths, { + customDestinationBuilder: transformationFunc, + }); }); });