Skip to content

Commit

Permalink
Mock additional methods of @nextcloud/auth during tests
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 25, 2022
1 parent 9d5e85f commit c56493a
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit c56493a

Please sign in to comment.