Skip to content

Commit

Permalink
updated account picker test
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Feb 21, 2024
1 parent df12f45 commit d3706dd
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@ import { SendPageAccountPicker } from '.';
const render = (props = {}) => {
const store = configureStore({
...mockState,
metamask: {...mockState.metamask,
permissionHistory: {
'https://test.dapp': {
eth_accounts: {
accounts: {
'0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc': 1596681857076,
},
},
},
},
subjects: {
'https://test.dapp': {
permissions: {
eth_accounts: {
caveats: [
{
type: 'restrictReturnedAccounts',
value: ['0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc'],
},
],
invoker: 'https://test.dapp',
parentCapability: 'eth_accounts',
},
},
},
},
},
activeTab: {
origin: 'https://test.dapp',
},
Expand Down

0 comments on commit d3706dd

Please sign in to comment.