File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
libs/ledger-live-common/src/families/aptos Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -12,25 +12,15 @@ describe("LedgerAccount Test", () => {
12
12
13
13
it ( "builds the client properly" , ( ) => {
14
14
expect ( LedgerAccount . fromLedgerConnection ) . toBeDefined ( ) ;
15
- expect ( typeof LedgerAccount . fromLedgerConnection ) . toBe ( "function" ) ;
16
15
expect ( account . init ) . toBeDefined ( ) ;
17
- expect ( typeof account . init ) . toBe ( "function" ) ;
18
16
expect ( account . toAptosAccount ) . toBeDefined ( ) ;
19
- expect ( typeof account . toAptosAccount ) . toBe ( "function" ) ;
20
17
expect ( account . hdWalletPath ) . toBeDefined ( ) ;
21
- expect ( typeof account . hdWalletPath ) . toBe ( "function" ) ;
22
18
expect ( account . address ) . toBeDefined ( ) ;
23
- expect ( typeof account . address ) . toBe ( "function" ) ;
24
19
expect ( account . authKey ) . toBeDefined ( ) ;
25
- expect ( typeof account . authKey ) . toBe ( "function" ) ;
26
20
expect ( account . pubKey ) . toBeDefined ( ) ;
27
- expect ( typeof account . pubKey ) . toBe ( "function" ) ;
28
21
expect ( account . asyncSignBuffer ) . toBeDefined ( ) ;
29
- expect ( typeof account . asyncSignBuffer ) . toBe ( "function" ) ;
30
22
expect ( account . asyncSignHexString ) . toBeDefined ( ) ;
31
- expect ( typeof account . asyncSignHexString ) . toBe ( "function" ) ;
32
23
expect ( account . signTransaction ) . toBeDefined ( ) ;
33
- expect ( typeof account . signTransaction ) . toBe ( "function" ) ;
34
24
35
25
expect ( mockedLedgerAccount ) . toHaveBeenCalledTimes ( 1 ) ;
36
26
} ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ describe("Aptos bridge interface ", () => {
33
33
} ) ;
34
34
} ) ;
35
35
36
- describe ( "accountBridge " , ( ) => {
36
+ describe ( "accountBridge" , ( ) => {
37
37
it ( "should contain all methods" , ( ) => {
38
38
expect ( bridge . accountBridge . estimateMaxSpendable ) . toBeDefined ( ) ;
39
39
expect ( typeof bridge . accountBridge . estimateMaxSpendable ) . toBe ( "function" ) ;
@@ -53,8 +53,15 @@ describe("Aptos bridge interface ", () => {
53
53
expect ( typeof bridge . accountBridge . signOperation ) . toBe ( "function" ) ;
54
54
expect ( bridge . accountBridge . broadcast ) . toBeDefined ( ) ;
55
55
expect ( typeof bridge . accountBridge . broadcast ) . toBe ( "function" ) ;
56
+ expect ( bridge . currencyBridge . hydrate ) . toBeDefined ( ) ;
57
+ expect ( typeof bridge . currencyBridge . hydrate ) . toBe ( "function" ) ;
58
+ expect ( bridge . currencyBridge . preload ) . toBeDefined ( ) ;
59
+ expect ( typeof bridge . currencyBridge . preload ) . toBe ( "function" ) ;
60
+ expect ( bridge . currencyBridge . scanAccounts ) . toBeDefined ( ) ;
61
+ expect ( typeof bridge . currencyBridge . scanAccounts ) . toBe ( "function" ) ;
56
62
} ) ;
57
63
} ) ;
64
+
58
65
describe ( "updateTransaction" , ( ) => {
59
66
it ( "should update the transaction with the given patch" , ( ) => {
60
67
const initialTransaction = {
You can’t perform that action at this time.
0 commit comments