Skip to content

Commit

Permalink
Merge pull request #51 from christroutner/unstable
Browse files Browse the repository at this point in the history
fix(free tier): Adding integration tests for free tier
  • Loading branch information
christroutner authored Jul 13, 2020
2 parents e8e9e03 + 0c2667e commit 22539fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test:integration:local": "RESTURL=http://localhost:3000/v3/ mocha --timeout 30000 test/integration",
"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:testnet": "bash test/integration/testnet/test-free-tier.sh",
"test:temp": "nyc mocha --timeout 30000 test/unit/ipfs.js",
"test:integration:api": "RESTURL=https://api.fullstack.cash/v3/ mocha --timeout 30000 test/integration",
"coverage": "nyc report --reporter=text-lcov | coveralls",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test-free-tier.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

export RESTURL=https://free-api.fullstack.cash/v3/
export RESTURL=https://free-main.fullstack.cash/v3/
#export RESTURL=http://localhost:3000/v3/

cd test/integration/
Expand Down
8 changes: 8 additions & 0 deletions test/integration/testnet/test-free-tier.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

export RESTURL=https://free-test.fullstack.cash/v3/
export NETWORK=testnet
#export RESTURL=http://localhost:3000/v3/

cd test/integration/testnet/
mocha --timeout 30000 blockchain.js control.js electrumx.js openbazaar.js rawtransaction.js slp.js util.js

0 comments on commit 22539fd

Please sign in to comment.