@@ -15,10 +15,7 @@ import {
15
15
} from '@metamask/keyring-api' ;
16
16
import type { InternalAccount } from '@metamask/keyring-internal-api' ;
17
17
18
- import {
19
- MultichainAccountWallet ,
20
- MultichainAccountWalletStatus ,
21
- } from './MultichainAccountWallet' ;
18
+ import { MultichainAccountWallet } from './MultichainAccountWallet' ;
22
19
import type { MockAccountProvider } from './tests' ;
23
20
import {
24
21
MOCK_HD_ACCOUNT_1 ,
@@ -103,7 +100,7 @@ describe('MultichainAccountWallet', () => {
103
100
104
101
const expectedWalletId = toMultichainAccountWalletId ( entropySource ) ;
105
102
expect ( wallet . id ) . toStrictEqual ( expectedWalletId ) ;
106
- expect ( wallet . status ) . toStrictEqual ( MultichainAccountWalletStatus . Ready ) ;
103
+ expect ( wallet . status ) . toBe ( 'ready' ) ;
107
104
expect ( wallet . type ) . toBe ( AccountWalletType . Entropy ) ;
108
105
expect ( wallet . entropySource ) . toStrictEqual ( entropySource ) ;
109
106
expect ( wallet . getMultichainAccountGroups ( ) ) . toHaveLength ( 1 ) ; // All internal accounts are using index 0, so it means only 1 multichain account.
@@ -402,14 +399,12 @@ describe('MultichainAccountWallet', () => {
402
399
// 1. Triggered when group alignment begins.
403
400
. mockImplementationOnce ( ( walletId , status ) => {
404
401
expect ( walletId ) . toBe ( wallet . id ) ;
405
- expect ( status ) . toBe (
406
- MultichainAccountWalletStatus . AlignmentInProgress ,
407
- ) ;
402
+ expect ( status ) . toBe ( 'in-progress:alignment' ) ;
408
403
} )
409
404
// 2. Triggered when group alignment ends.
410
405
. mockImplementationOnce ( ( walletId , status ) => {
411
406
expect ( walletId ) . toBe ( wallet . id ) ;
412
- expect ( status ) . toBe ( MultichainAccountWalletStatus . Ready ) ;
407
+ expect ( status ) . toBe ( 'ready' ) ;
413
408
} ) ;
414
409
415
410
messenger . subscribe (
@@ -449,14 +444,12 @@ describe('MultichainAccountWallet', () => {
449
444
// 1. Triggered when group alignment begins.
450
445
. mockImplementationOnce ( ( walletId , status ) => {
451
446
expect ( walletId ) . toBe ( wallet . id ) ;
452
- expect ( status ) . toBe (
453
- MultichainAccountWalletStatus . AlignmentInProgress ,
454
- ) ;
447
+ expect ( status ) . toBe ( 'in-progress:alignment' ) ;
455
448
} )
456
449
// 2. Triggered when group alignment ends.
457
450
. mockImplementationOnce ( ( walletId , status ) => {
458
451
expect ( walletId ) . toBe ( wallet . id ) ;
459
- expect ( status ) . toBe ( MultichainAccountWalletStatus . Ready ) ;
452
+ expect ( status ) . toBe ( 'ready' ) ;
460
453
} ) ;
461
454
462
455
messenger . subscribe (
@@ -500,14 +493,12 @@ describe('MultichainAccountWallet', () => {
500
493
// 1. Triggered when group alignment begins.
501
494
. mockImplementationOnce ( ( walletId , status ) => {
502
495
expect ( walletId ) . toBe ( wallet . id ) ;
503
- expect ( status ) . toBe (
504
- MultichainAccountWalletStatus . DiscoveryInProgress ,
505
- ) ;
496
+ expect ( status ) . toBe ( 'in-progress:discovery' ) ;
506
497
} )
507
498
// 2. Triggered when group alignment ends.
508
499
. mockImplementationOnce ( ( walletId , status ) => {
509
500
expect ( walletId ) . toBe ( wallet . id ) ;
510
- expect ( status ) . toBe ( MultichainAccountWalletStatus . Ready ) ;
501
+ expect ( status ) . toBe ( 'ready' ) ;
511
502
} ) ;
512
503
513
504
messenger . subscribe (
0 commit comments