File tree Expand file tree Collapse file tree 5 files changed +3162
-11
lines changed Expand file tree Collapse file tree 5 files changed +3162
-11
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
- node_modules /
2
+ node_modules /
3
+ coverage
4
+ .vscode
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ mymonero_core_js.monero_wallet_locale = require("./monero_utils/monero_wallet_lo
42
42
mymonero_core_js . monero_paymentID_utils = require ( "./monero_utils/monero_paymentID_utils" ) ;
43
43
mymonero_core_js . api_response_parser_utils = require ( "./hostAPI/response_parser_utils" ) ;
44
44
//
45
- mymonero_core_js . nettype_utils = require ( "./cryptonote_utils/nettype_utils " ) ;
45
+ mymonero_core_js . nettype_utils = require ( "./cryptonote_utils/nettype " ) ;
46
46
mymonero_core_js . JSBigInt = require ( "./cryptonote_utils/biginteger" ) . BigInteger ; // so that it is available to a hypothetical consumer's language-bridging web context for constructing string arguments to the above modules
47
47
//
48
48
module . exports = mymonero_core_js ;
Original file line number Diff line number Diff line change 8
8
"url" : " git+https://github.com/mymonero/mymonero-core-js.git"
9
9
},
10
10
"scripts" : {
11
- "format" : " find . -name '*.js*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override"
11
+ "format" : " find . -name '*.js*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override" ,
12
+ "test" : " jest" ,
13
+ "test:coverage" : " jest --coverage"
12
14
},
13
15
"keywords" : [
14
16
" monero" ,
31
33
"homepage" : " https://github.com/mymonero/mymonero-core-js#readme" ,
32
34
"dependencies" : {
33
35
"async" : " ^2.6.0"
36
+ },
37
+ "devDependencies" : {
38
+ "jest" : " ^23.1.0"
39
+ },
40
+ "jest" : {
41
+ "coveragePathIgnorePatterns" : [
42
+ " node_modules" ,
43
+ " cryptonote_utils/biginteger.js" ,
44
+ " cryptonote_utils/sha3.js" ,
45
+ " cryptonote_utils/cryptonote_crypto_EMSCRIPTEN.js" ]
34
46
}
35
47
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var public_key =
7
7
var private_key =
8
8
"52aa4c69b93b780885c9d7f51e6fd5795904962c61a2e07437e130784846f70d" ;
9
9
10
- var nettype = mymonero . nettype_utils . network_type . MAINNNET ;
10
+ var nettype = mymonero . nettype_utils . network_type . MAINNET ;
11
11
12
12
describe ( "cryptonote_utils tests" , function ( ) {
13
13
it ( "is valid hex" , function ( ) {
You can’t perform that action at this time.
0 commit comments