Skip to content

Commit

Permalink
fix: Pass the expected log option to saveFiles from cozy-clisk
Browse files Browse the repository at this point in the history
This option was removed by mistake
  • Loading branch information
doubleface authored and doubleface committed Dec 11, 2023
1 parent fb11949 commit 58dc25c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/Launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Launcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 58dc25c

Please sign in to comment.