Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Dec 15, 2022
1 parent 33cb9f0 commit 6839799
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,9 @@ describe('Confirm Page Container Container Test', () => {
it('should not show add to address dialog if recipient is in contact list and should display contact name', () => {
const addressBookName = 'test save name';

const addressBook = {
'0x5': {
'0x7a1A4Ad9cc746a70ee58568466f7996dD0aCE4E8': {
address: '0x7a1A4Ad9cc746a70ee58568466f7996dD0aCE4E8',
chainId: '054',
isEns: false,
memo: '',
name: addressBookName,
},
},
};

mockState.metamask.addressBook = addressBook;

const store = configureMockStore()(mockState);

renderWithProvider(<ConfirmPageContainer {...props} />, store);
renderWithProvider(<ConfirmPageContainer {...props} toNickname={addressBookName} />, store);

// Does not display new address dialog banner
const newAccountDetectDialog = screen.queryByText(
Expand Down

0 comments on commit 6839799

Please sign in to comment.