repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
wallet
/
tests
/
mocks
/
useHideAmounts.ts
blob
c206e972076c063e42bf4ca6027e4c1e2a4ca1a1
1
import * as useHideAmountsModule from '../../store/hooks/useHideAmounts';
2
3
export const mockUseHideAmounts = (mockedValue?: boolean) => {
4
const spy = vi.spyOn(useHideAmountsModule, 'useHideAmounts');
5
6
spy.mockReturnValue(mockedValue ?? false);
7
8
return spy;
9
};