Skip to content

Commit

Permalink
tests: 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 Aug 18, 2023
1 parent 777b207 commit e9b3ff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jest.mock('@nextcloud/auth', () => ({
onRequestTokenUpdate: jest.fn().mockImplementation(() => {}),
}))

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

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

0 comments on commit e9b3ff9

Please sign in to comment.