File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 4
4
"indentStyle" : " space" ,
5
5
"lineWidth" : 120
6
6
},
7
+ "files" : {
8
+ "ignore" : [" node_modules/*" , " node_modules/**/*" , " dist/" ]
9
+ },
7
10
"organizeImports" : { "enabled" : true },
8
11
"linter" : {
9
12
"enabled" : true ,
Original file line number Diff line number Diff line change 1
1
// TODO: Improve coverage to 90%
2
- const coverageToNumber = 40 ; // [0..100]
2
+ const coverageToNumber = 20 ; // [0..100]
3
3
4
4
/*
5
5
* For a detailed explanation regarding each configuration property and type check, visit:
Original file line number Diff line number Diff line change @@ -76,12 +76,24 @@ describe(".env Check", () => {
76
76
wantErr : true ,
77
77
errorMessage : '"roochPrivateKey" is not allowed to be empty' ,
78
78
} ,
79
+ {
80
+ name : "missing X data" ,
81
+ data : {
82
+ PREFERRED_CHAIN : "ROOCH" ,
83
+ ROOCH_ORACLE_ADDRESS : "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c" ,
84
+ ROOCH_PRIVATE_KEY : "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c" ,
85
+ } ,
86
+ wantErr : true ,
87
+ errorMessage : '"xApiSecret" is not allowed to be empty' ,
88
+ } ,
79
89
{
80
90
name : "valid data" ,
81
91
data : {
82
92
PREFERRED_CHAIN : "ROOCH" ,
83
93
ROOCH_ORACLE_ADDRESS : "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c" ,
84
94
ROOCH_PRIVATE_KEY : "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c" ,
95
+ X_API_KEY : "key" ,
96
+ X_API_SECRET : "secret" ,
85
97
} ,
86
98
wantErr : false ,
87
99
errorMessage : '"roochPrivateKey" is not allowed to be empty' ,
You can’t perform that action at this time.
0 commit comments