From 4eb4301ea4c7a5b687f25bdcff5d27718c215873 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 21 Jan 2025 15:08:07 +0100 Subject: [PATCH] fix(files_sharing): Only clear permissions of pending federated shares Signed-off-by: provokateurin [skip ci] --- .../files_sharing/src/services/SharingService.spec.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/files_sharing/src/services/SharingService.spec.ts b/apps/files_sharing/src/services/SharingService.spec.ts index 388b0a7cc26cd..2abdd38dd180c 100644 --- a/apps/files_sharing/src/services/SharingService.spec.ts +++ b/apps/files_sharing/src/services/SharingService.spec.ts @@ -278,7 +278,7 @@ describe('SharingService share to Node mapping', () => { tags: [window.OC.TAG_FAVORITE], } - const remoteFile = { + const remoteFileAccepted = { mimetype: 'text/markdown', mtime: 1688721600, permissions: 19, @@ -362,13 +362,12 @@ describe('SharingService share to Node mapping', () => { ocs: { data: [remoteFile], }, - }, - })) + })) - const shares = await getContents(false, true, false, false) + const shares = await getContents(false, true, false, false) - expect(axios.get).toHaveBeenCalledTimes(1) - expect(shares.contents).toHaveLength(1) + expect(axios.get).toHaveBeenCalledTimes(1) + expect(shares.contents).toHaveLength(1) const file = shares.contents[0] as File expect(file).toBeInstanceOf(File)