Skip to content

Commit

Permalink
Update: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed Jun 23, 2020
1 parent e93a106 commit d572a69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ exports[`Approve should render correctly 1`] = `
}
}
accountsLength={1}
contractBalances={
Object {
"0x2": "0",
}
}
activeTabUrl="https://metamask.github.io/test-dapp/"
conversionRate={100}
currentCurrency="USD"
identities={
Expand All @@ -24,6 +20,7 @@ exports[`Approve should render correctly 1`] = `
},
}
}
primaryCurrency="Fiat"
setTransactionObject={[Function]}
showAlert={[Function]}
ticker="ETH"
Expand Down
7 changes: 7 additions & 0 deletions app/components/Views/ApproveView/Approve/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ describe('Approve', () => {
it('should render correctly', () => {
const initialState = {
transaction: {},
settings: {
primaryCurrency: 'Fiat'
},
browser: {
activeTab: 1592878266671,
tabs: [{ id: 1592878266671, url: 'https://metamask.github.io/test-dapp/' }]
},
engine: {
backgroundState: {
AccountTrackerController: {
Expand Down

0 comments on commit d572a69

Please sign in to comment.