diff --git a/.gitignore b/.gitignore index 54f27a0..adcb09c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules bitcoinjs-min.js +coverage diff --git a/package.json b/package.json index 6d86c04..854c9a9 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,9 @@ "files": "test/*.js" }, "scripts": { - "test": "istanbul test ./node_modules/.bin/_mocha -- --reporter list test/*.js", - "compile": "browserify src/index.js -s Bitcoin | uglifyjs > bitcoinjs-min.js" + "test": "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --reporter list test/*.js", + "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js", + "compile": "./node_modules/.bin/browserify -s Bitcoin | ./node_modules/.bin/uglifyjs > bitcoinjs-min.js" }, "dependencies": { "crypto-js": "~3.1.2-2" diff --git a/test/ec.js b/test/ec.js index bc4b979..2be6f72 100644 --- a/test/ec.js +++ b/test/ec.js @@ -6,7 +6,7 @@ var ecdsa = require('../').ecdsa; var ecparams = sec('secp256k1'); describe('ecdsa', function() { - it('handles point ultiplication', function() { + it('handles point multiplication', function() { var G = ecparams.getG(); var n = ecparams.getN();