From 90d8c4dda2565d4d0ac71f559b19846229a17c5c Mon Sep 17 00:00:00 2001 From: Otto Allmendinger Date: Fri, 3 Jan 2020 15:17:59 +0100 Subject: [PATCH] Actually run tests in test/forks/ Since `coverage` only runs mocha, which does not run tests recursively by default, the coverage dropped below 90%. This change barely moves it above 90% again. Issue: BLOCK-251 --- package.json | 2 +- test/forks/btg/transaction_builder.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3b27ec91..4fd6585f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "scripts": { "coverage-report": "nyc report --reporter=lcov", "coverage-html": "nyc report --reporter=html", - "coverage": "nyc --check-coverage --branches 90 --functions 90 mocha", + "coverage": "nyc --check-coverage --branches 90 --functions 90 mocha test/ test/forks/*", "integration": "mocha test/integration/", "standard": "standard", "test": "npm run standard && npm run coverage", diff --git a/test/forks/btg/transaction_builder.js b/test/forks/btg/transaction_builder.js index 2f4f8492..8f1fa4b5 100644 --- a/test/forks/btg/transaction_builder.js +++ b/test/forks/btg/transaction_builder.js @@ -9,7 +9,7 @@ const { ECPair, script, crypto -} = require('..') +} = require('../../../src') describe('TransactionBuilder (BTG)', function () { var network = networks['bitcoingold']