From 58dc25c3d250d43b7d1c690e1619292d11752899 Mon Sep 17 00:00:00 2001 From: doubleface Date: Fri, 8 Dec 2023 20:32:45 +0100 Subject: [PATCH] fix: Pass the expected log option to saveFiles from cozy-clisk This option was removed by mistake --- src/libs/Launcher.js | 3 ++- src/libs/Launcher.spec.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/Launcher.js b/src/libs/Launcher.js index ca60fd601..3bac96101 100644 --- a/src/libs/Launcher.js +++ b/src/libs/Launcher.js @@ -484,7 +484,8 @@ export default class Launcher { // @ts-ignore dataUri: await this.worker.call('downloadFileInWorker', entry) }), - existingFilesIndex + existingFilesIndex, + log: this.log.bind(this) } try { diff --git a/src/libs/Launcher.spec.js b/src/libs/Launcher.spec.js index fbf3962cb..d6f444203 100644 --- a/src/libs/Launcher.spec.js +++ b/src/libs/Launcher.spec.js @@ -277,6 +277,7 @@ describe('Launcher', () => { expect(saveFiles).toHaveBeenCalledWith(client, [{}], 'folderPath', { downloadAndFormatFile: expect.any(Function), manifest: expect.any(Object), + log: expect.any(Function), existingFilesIndex: new Map([ [ 'fileidattribute', @@ -355,6 +356,7 @@ describe('Launcher', () => { expect(saveFiles).toHaveBeenNthCalledWith(1, client, [{}], 'folderPath', { downloadAndFormatFile: expect.any(Function), manifest: expect.any(Object), + log: expect.any(Function), existingFilesIndex: new Map([ [ 'fileidattribute', @@ -370,6 +372,7 @@ describe('Launcher', () => { expect(saveFiles).toHaveBeenNthCalledWith(2, client, [{}], 'folderPath', { downloadAndFormatFile: expect.any(Function), manifest: expect.any(Object), + log: expect.any(Function), existingFilesIndex: new Map([ [ 'fileidattribute',