From cbc834cc1ababd0e0b15019c4a346308e598d42a Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 10 Nov 2021 17:32:17 -0800 Subject: [PATCH] fix(tests): Moving util.js integration tests to bchn specific folder --- package.json | 3 ++- test/integration/{ => chains/bchn}/util.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename test/integration/{ => chains/bchn}/util.js (95%) diff --git a/package.json b/package.json index 4e08577..24d0813 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "test:integration:local:abc": "export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/", "test:integration:local:bchn": "export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", "test:integration:local:testnet": "RESTURL=http://localhost:4000/v5/ mocha --timeout 30000 test/integration/chains/testnet", - "test:integration:decatur:bchn": "export RESTURL=http://192.168.0.36:3000/v5/ && mocha --timeout 30000 test/integration/", + "test:integration:decatur:bchn": "export RESTURL=http://192.168.0.36:3000/v5/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", + "test:integration:decatur:abc": "export RESTURL=http://192.168.0.38:3000/v5/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/", "test:integration:temp:bchn": "export RESTURL=http://157.90.174.219:3000/v5/ && mocha --timeout 30000 test/integration/", "test:temp": "export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#Encryption' test/integration/", "test:temp2": "mocha --timeout=30000 -g '#TransactionLib' test/unit/", diff --git a/test/integration/util.js b/test/integration/chains/bchn/util.js similarity index 95% rename from test/integration/util.js rename to test/integration/chains/bchn/util.js index 0dffce2..18bb102 100644 --- a/test/integration/util.js +++ b/test/integration/chains/bchn/util.js @@ -5,7 +5,7 @@ const chai = require('chai') const assert = chai.assert -const BCHJS = require('../../src/bch-js') +const BCHJS = require('../../../../src/bch-js') const bchjs = new BCHJS() // Inspect utility used for debugging. @@ -81,7 +81,8 @@ describe('#util', () => { it('should throw error on array size rate limit', async () => { try { - const dataMock = 'bitcoincash:qp4k8fjtgunhdr7yq30ha4peuwupzan2vcnwrmpy0z' + const dataMock = + 'bitcoincash:qp4k8fjtgunhdr7yq30ha4peuwupzan2vcnwrmpy0z' const data = [] for (let i = 0; i < 25; i++) data.push(dataMock)