From 285c2fb32c0a2a21c3cb1404a18787891a52fd82 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Tue, 1 Aug 2023 13:19:29 +0200 Subject: [PATCH] test: use createNewVaultAndRestore from core --- app/scripts/metamask-controller.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/metamask-controller.test.js b/app/scripts/metamask-controller.test.js index 02d7b1f50ff4..e15ce5593942 100644 --- a/app/scripts/metamask-controller.test.js +++ b/app/scripts/metamask-controller.test.js @@ -302,7 +302,7 @@ describe('MetaMaskController', function () { 'createNewVaultAndKeychain', ); sandbox.spy( - metamaskController.keyringController, + metamaskController.coreKeyringController, 'createNewVaultAndRestore', ); }); @@ -418,7 +418,7 @@ describe('MetaMaskController', function () { await metamaskController.createNewVaultAndRestore(password, TEST_SEED); assert( - metamaskController.keyringController.createNewVaultAndRestore + metamaskController.coreKeyringController.createNewVaultAndRestore .calledTwice, ); });