diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-25 16:30:37 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-25 16:30:37 +0300 |
commit | c56493a96c8b400e8553dc8a1aec5e70d40a519d (patch) | |
tree | 63e3ee07baeac196972e33ce476416dddc6fd755 /src | |
parent | 9d5e85f343444d255b8b20eb9f7da3cfe13f2762 (diff) |
Mock additional methods of @nextcloud/auth during tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/setup.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/setup.js b/src/tests/setup.js index c458aada9..3881f3f50 100644 --- a/src/tests/setup.js +++ b/src/tests/setup.js @@ -31,7 +31,9 @@ jest.mock('@nextcloud/auth', () => ({ uid: 'user1', displayName: 'User 1', isAdmin: false, - })) + })), + getRequestToken: jest.fn().mockImplementation(() => '123456abcdef'), + onRequestTokenUpdate: jest.fn().mockImplementation(() => {}), })) |