From 673d21633eb20bd2504e4ec02456b5ee6c6784a0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 9 Jul 2024 14:50:31 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- test/transfer-manager.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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, + }); }); });