fix(price): Fixing broken integration test

This commit is contained in:
Chris Troutner
2020-10-20 18:18:18 -07:00
parent c5361e0516
commit eb3bc7bcff
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
"test:integration:free": "bash test/integration/test-free-tier.sh",
"test:integration:free:bchn": "bash test/integration/test-free-tier-bchn.sh",
"test:integration:free:testnet": "bash test/integration/testnet/test-free-tier.sh",
"test:temp": "mocha --timeout 30000 -g '#hydrateUtxos' test/integration/",
"test:temp": "mocha --timeout 30000 -g '#price' test/integration/",
"test:integration:api": "RESTURL=https://api.fullstack.cash/v3/ mocha --timeout 30000 test/integration",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage:report": "nyc --reporter=html mocha --timeout 25000 test/unit/",
+11 -1
View File
@@ -17,7 +17,17 @@ describe("#price", () => {
const result = await bchjs.Price.getUsd()
// console.log(result)
assert.isNumber(result.usd)
assert.isNumber(result)
})
})
describe("#rates", () => {
it("should get the price of BCH in several currencies", async () => {
const result = await bchjs.Price.rates()
// console.log(result)
assert.property(result, "USD")
assert.property(result, "CAD")
})
})
})