diff --git a/src/hooks/useMnemonicName/dict.ts b/src/hooks/useMnemonicName/dict.ts index 7e6608315e..d45be71e76 100644 --- a/src/hooks/useMnemonicName/dict.ts +++ b/src/hooks/useMnemonicName/dict.ts @@ -101,7 +101,6 @@ goshawk grasshopper grouse guanaco -guinea-pig gull hamster hare @@ -130,7 +129,6 @@ kangaroo kingfisher kinkajou koala -komodo-dragon kookaburra kouprey kudu @@ -188,7 +186,6 @@ pheasant pig pigeon pika -polar-bear pony porcupine porpoise @@ -201,18 +198,15 @@ raccoon ram rat raven -red-deer -red-panda reindeer rhea rhinoceros rook salamander salmon -sand-dollar +sand sandpiper sardine -sea-lion seahorse seal shark @@ -278,7 +272,6 @@ excellent merry amiable exceptional -mild-mannered amused excited nice @@ -322,10 +315,8 @@ calm good proud charming -good-humored relaxed cheerful -good-natured reliable cheery gracious diff --git a/src/hooks/wallets/mpc/__tests__/useMPC.test.ts b/src/hooks/wallets/mpc/__tests__/useMPC.test.ts index a35c4875c0..2cdfd3f689 100644 --- a/src/hooks/wallets/mpc/__tests__/useMPC.test.ts +++ b/src/hooks/wallets/mpc/__tests__/useMPC.test.ts @@ -1,4 +1,5 @@ import * as useOnboard from '@/hooks/wallets/useOnboard' +import * as socialWalletOptions from '@/services/mpc/config' import { renderHook, waitFor } from '@/tests/test-utils' import { _getMPCCoreKitInstance, setMPCCoreKitInstance, useInitMPC } from '../useMPC' import * as useChains from '@/hooks/useChains' @@ -65,6 +66,7 @@ class EventEmittingMockProvider { describe('useInitMPC', () => { beforeEach(() => { jest.resetAllMocks() + jest.spyOn(socialWalletOptions, 'isSocialWalletOptions').mockReturnValue(true) }) it('should set the coreKit if user is not logged in yet', async () => { const connectWalletSpy = jest.fn().mockImplementation(() => Promise.resolve()) diff --git a/src/services/mpc/__tests__/SocialWalletService.test.ts b/src/services/mpc/__tests__/SocialWalletService.test.ts index e3163b1069..4e766b2556 100644 --- a/src/services/mpc/__tests__/SocialWalletService.test.ts +++ b/src/services/mpc/__tests__/SocialWalletService.test.ts @@ -7,6 +7,7 @@ import { type TssSecurityQuestion, } from '@web3auth/mpc-core-kit' import * as mpcCoreKit from '@web3auth/mpc-core-kit' +import * as socialWalletOptions from '@/services/mpc/config' import { ethers } from 'ethers' import BN from 'bn.js' import { hexZeroPad } from 'ethers/lib/utils' @@ -76,6 +77,7 @@ describe('useMPCWallet', () => { }) beforeEach(() => { jest.resetAllMocks() + jest.spyOn(socialWalletOptions, 'isSocialWalletOptions').mockReturnValue(true) }) afterAll(() => { jest.useRealTimers()