Skip to content

Commit

Permalink
fix(files_sharing): Only clear permissions of pending federated shares
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>

[skip ci]
  • Loading branch information
provokateurin authored and backportbot[bot] committed Jan 30, 2025
1 parent 1b5c1fe commit 4eb4301
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/files_sharing/src/services/SharingService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4eb4301

Please sign in to comment.