fix(price): Adding Coinex price feed for BCHA

This commit is contained in:
Chris Troutner
2020-11-17 13:48:10 -08:00
parent 9c70fc5007
commit 2a0b06ca96
5 changed files with 140 additions and 6 deletions
+12 -1
View File
@@ -4,7 +4,7 @@
'use strict'
// const assert = require('chai').assert
const assert = require('chai').assert
// const axios = require('axios')
// Used for debugging.
@@ -29,6 +29,17 @@ describe('#price', () => {
it('should get the USD price', async () => {
const result = await price.getUSD(req, res)
console.log(`result: ${util.inspect(result)}`)
assert.isNumber(result.usd)
})
})
describe('#getBCHAUSD', () => {
it('should get the USD price of BCHA', async () => {
const result = await price.getBCHAUSD(req, res)
console.log(`result: ${util.inspect(result)}`)
assert.isNumber(result.usd)
})
})
})