@@ -21,11 +21,16 @@ describe('extensions/payment-network/native-token', () => {
21
21
value : 'NEAR' ,
22
22
network : 'aurora' ,
23
23
} ;
24
- const nearTestnetCurrency = {
24
+ const auroraTestnetCurrency = {
25
25
type : RequestLogicTypes . CURRENCY . ETH ,
26
26
value : 'NEAR-testnet' ,
27
27
network : 'aurora-testnet' ,
28
28
} ;
29
+ const nearTestnetCurrency = {
30
+ type : RequestLogicTypes . CURRENCY . ETH ,
31
+ value : 'tNEAR' ,
32
+ network : 'near-testnet' ,
33
+ } ;
29
34
const nativeTokenTestCases = [
30
35
{
31
36
name : 'Near' ,
@@ -34,14 +39,23 @@ describe('extensions/payment-network/native-token', () => {
34
39
suffix : 'near' ,
35
40
wrongSuffix : 'testnet' ,
36
41
currency : nearCurrency ,
37
- wrongCurrency : nearTestnetCurrency ,
42
+ wrongCurrency : auroraTestnetCurrency ,
38
43
} ,
39
44
{
40
- name : 'Near testnet' ,
45
+ name : 'Aurora testnet' ,
41
46
paymentNetwork : new NearNativePaymentNetwork ( ) as NativeTokenPaymentNetwork ,
42
47
networkName : 'aurora-testnet' ,
43
48
suffix : 'testnet' ,
44
49
wrongSuffix : 'near' ,
50
+ currency : auroraTestnetCurrency ,
51
+ wrongCurrency : nearCurrency ,
52
+ } ,
53
+ {
54
+ name : 'Near testnet' ,
55
+ paymentNetwork : new NearNativePaymentNetwork ( ) as NativeTokenPaymentNetwork ,
56
+ networkName : 'near-testnet' ,
57
+ suffix : 'testnet' ,
58
+ wrongSuffix : 'near' ,
45
59
currency : nearTestnetCurrency ,
46
60
wrongCurrency : nearCurrency ,
47
61
} ,
@@ -136,7 +150,7 @@ describe('extensions/payment-network/native-token', () => {
136
150
paymentNetworkName : 'another-chain' ,
137
151
} ) ;
138
152
} ) . toThrowError (
139
- `Payment network 'another-chain' is not supported by this extension (only aurora, aurora-testnet)` ,
153
+ `Payment network 'another-chain' is not supported by this extension (only aurora, aurora-testnet, near-testnet )` ,
140
154
) ;
141
155
} ) ;
142
156
it ( 'createCreationAction() throws without payment network' , ( ) => {
0 commit comments