Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mock additional methods of @nextcloud/auth during tests
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 25, 2022
commit c56493a96c8b400e8553dc8a1aec5e70d40a519d
4 changes: 3 additions & 1 deletion src/tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jest.mock('@nextcloud/auth', () => ({
uid: 'user1',
displayName: 'User 1',
isAdmin: false,
}))
})),
getRequestToken: jest.fn().mockImplementation(() => '123456abcdef'),
onRequestTokenUpdate: jest.fn().mockImplementation(() => {}),
}))


Expand Down