From 44e671dfbec4a4fe50cec6fa7fd2c4606c56dbe1 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 6 Oct 2022 20:24:17 -0700 Subject: [PATCH] fix(price): Removing dead price endpoint tests --- test/integration/price.js | 1 + test/unit/price.js | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/test/integration/price.js b/test/integration/price.js index 3d0832a..d535232 100644 --- a/test/integration/price.js +++ b/test/integration/price.js @@ -33,6 +33,7 @@ describe('#price', () => { assert.isNumber(result) }) }) + describe('#getBchUsd', () => { it('should get the USD price of BCH', async () => { const result = await bchjs.Price.getBchUsd() diff --git a/test/unit/price.js b/test/unit/price.js index ffef561..fc06b98 100644 --- a/test/unit/price.js +++ b/test/unit/price.js @@ -19,18 +19,18 @@ describe('#price', () => { afterEach(() => sandbox.restore()) - describe('#current', () => { - it('should get current price for single currency', async () => { - sandbox - .stub(bchjs.Price.axios, 'get') - .resolves({ data: { price: 24905 } }) - - const result = await bchjs.Price.current('usd') - // console.log(result) - - assert.isNumber(result) - }) - }) + // describe('#current', () => { + // it('should get current price for single currency', async () => { + // sandbox + // .stub(bchjs.Price.axios, 'get') + // .resolves({ data: { price: 24905 } }) + // + // const result = await bchjs.Price.current('usd') + // // console.log(result) + // + // assert.isNumber(result) + // }) + // }) describe('#getUsd', () => { it('should get the USD price of BCH', async () => {