Skip to content

Commit

Permalink
test: mock preferencesController.removeAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Sep 29, 2023
1 parent ad11698 commit 86b69b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/scripts/metamask-controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ describe('MetaMaskController', () => {
metamaskController.coreKeyringController,
'createNewVaultAndRestore',
);
jest
.spyOn(metamaskController.preferencesController, 'removeAddress')
.mockImplementation((address) => address);
});

describe('should reset states on first time profile load', () => {
Expand Down

0 comments on commit 86b69b7

Please sign in to comment.