From c0eaaf77c84c7bea19df32528a7cf7e0c266e780 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 9 Nov 2020 18:17:44 -0800 Subject: [PATCH] fix(integration tests): Updating scripts in package.json --- package.json | 8 +++----- .../{test-free-tier-bchn.sh => test-bchn-integration.sh} | 2 +- test/integration/test-free-tier.sh | 8 -------- 3 files changed, 4 insertions(+), 14 deletions(-) rename test/integration/{test-free-tier-bchn.sh => test-bchn-integration.sh} (84%) delete mode 100755 test/integration/test-free-tier.sh diff --git a/package.json b/package.json index 09fb823..5defe20 100644 --- a/package.json +++ b/package.json @@ -9,15 +9,13 @@ "main": "src/bch-js", "scripts": { "test": "nyc mocha --timeout 30000 test/unit/", - "test:integration": "bash test/integration/test-free-tier-bchn.sh", + "test:integration": "bash test/integration/test-bchn-integration.sh", + "test:integration:bchn": "bash test/integration/test-bchn-integration.sh", "test:integration:abc": "RESTURL=https://abc.fullstack.cash/v3/ IS_USING_FREE_TIER=true mocha --timeout 30000 test/integration/", "test:integration:testnet": "IS_USING_FREE_TIER=true mocha --timeout 30000 test/integration/testnet/", "test:integration:local": "RESTURL=http://localhost:3000/v3/ mocha --timeout 30000 test/integration", "test:integration:local:bchn": "RESTURL=http://localhost:3000/v3/ bash test/integration/test-free-tier-bchn.sh", - "test:integration:testnet:local": "RESTURL=http://localhost:4000/v3/ mocha --timeout 30000 test/integration/testnet", - "test:integration:free": "bash test/integration/test-free-tier.sh", - "test:integration:free:bchn": "IS_USING_FREE_TIER=true bash test/integration/test-free-tier-bchn.sh", - "test:integration:free:testnet": "bash test/integration/testnet/test-free-tier.sh", + "test:integration:local:testnet": "RESTURL=http://localhost:4000/v3/ mocha --timeout 30000 test/integration/testnet", "test:temp": "mocha --timeout 30000 -g '#Encryption' test/integration/", "test:integration:api": "RESTURL=https://api.fullstack.cash/v3/ mocha --timeout 30000 test/integration", "coverage": "nyc report --reporter=text-lcov | coveralls", diff --git a/test/integration/test-free-tier-bchn.sh b/test/integration/test-bchn-integration.sh similarity index 84% rename from test/integration/test-free-tier-bchn.sh rename to test/integration/test-bchn-integration.sh index f2464c7..81bce84 100755 --- a/test/integration/test-free-tier-bchn.sh +++ b/test/integration/test-bchn-integration.sh @@ -1,6 +1,6 @@ #!/bin/bash -#export RESTURL=https://bchn.fullstack.cash/v3/ +export RESTURL=https://bchn.fullstack.cash/v3/ #export RESTURL=http://localhost:3000/v3/ #export IS_USING_FREE_TIER=true diff --git a/test/integration/test-free-tier.sh b/test/integration/test-free-tier.sh deleted file mode 100755 index 2b9ed35..0000000 --- a/test/integration/test-free-tier.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -export RESTURL=https://free-main.fullstack.cash/v3/ -#export RESTURL=http://localhost:3000/v3/ -export IS_USING_FREE_TIER=true - -cd test/integration/ -mocha --timeout 30000 blockchain.js control.js electrumx.js ninsight.js openbazaar.js price.js rawtransaction.js slp.js util.js