diff --git a/package.json b/package.json index 25b0241..b7bb590 100644 --- a/package.json +++ b/package.json @@ -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/", diff --git a/test/integration/price.js b/test/integration/price.js index fcc92d9..579d65f 100644 --- a/test/integration/price.js +++ b/test/integration/price.js @@ -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") }) }) })