Skip to content

Commit

Permalink
tests: mock @nextcloud/dialogs 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 Oct 29, 2023
1 parent 5ee2b5a commit f697f34
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 @@ -40,6 +40,10 @@ jest.mock('@nextcloud/files', () => ({
formatFileSize: (size) => size,
Header: class {},
}))
jest.mock('@nextcloud/dialogs', () => ({
FilePickerType: {},
getFilePickerBuilder: () => {},
}))

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

0 comments on commit f697f34

Please sign in to comment.