Skip to content

Commit

Permalink
fix: Failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Nov 3, 2023
1 parent 64b959b commit 5b92d4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
11 changes: 1 addition & 10 deletions src/hooks/useMnemonicName/dict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ goshawk
grasshopper
grouse
guanaco
guinea-pig
gull
hamster
hare
Expand Down Expand Up @@ -130,7 +129,6 @@ kangaroo
kingfisher
kinkajou
koala
komodo-dragon
kookaburra
kouprey
kudu
Expand Down Expand Up @@ -188,7 +186,6 @@ pheasant
pig
pigeon
pika
polar-bear
pony
porcupine
porpoise
Expand All @@ -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
Expand Down Expand Up @@ -278,7 +272,6 @@ excellent
merry
amiable
exceptional
mild-mannered
amused
excited
nice
Expand Down Expand Up @@ -322,10 +315,8 @@ calm
good
proud
charming
good-humored
relaxed
cheerful
good-natured
reliable
cheery
gracious
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/wallets/mpc/__tests__/useMPC.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions src/services/mpc/__tests__/SocialWalletService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -76,6 +77,7 @@ describe('useMPCWallet', () => {
})
beforeEach(() => {
jest.resetAllMocks()
jest.spyOn(socialWalletOptions, 'isSocialWalletOptions').mockReturnValue(true)
})
afterAll(() => {
jest.useRealTimers()
Expand Down

0 comments on commit 5b92d4b

Please sign in to comment.