Skip to content

Commit

Permalink
test: Mock @nextcloud/files in jest
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 2, 2023
1 parent 0b16f5a commit 080caf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jest.mock('@nextcloud/auth', () => ({
onRequestTokenUpdate: jest.fn().mockImplementation(() => {}),
}))

jest.mock('@nextcloud/files', () => ({
formatFileSize: (size) => size,
})

global.OC = {
requestToken: '123',
Expand Down

0 comments on commit 080caf0

Please sign in to comment.