Skip to content

Commit

Permalink
CU-86a0cw8d9 - Add support to CryptoCompare exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
endkeyCoder committed Aug 17, 2023
1 parent c0521be commit 09bfb74
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@ import { BSNeoLegacy } from '../BSNeoLegacy'
let bsNeoLegacy: BSNeoLegacy

describe('CryptoCompare', () => {
beforeEach(() => {
bsNeoLegacy = new BSNeoLegacy('neoLegacy', { type: 'testnet', url: 'http://seed5.ngd.network:20332' })
beforeAll(() => {
bsNeoLegacy = new BSNeoLegacy('neoLegacy', { type: 'mainnet', url: '"https://mainnet1.neo2.coz.io:443' })
})
it('Should return a list with prices of tokens using USD', async () => {
bsNeoLegacy.network.type = 'mainnet'
const currency: Currency = 'USD'
const tokenPriceList = await bsNeoLegacy.exchange.getTokenPrices(currency)
expect(tokenPriceList.length).toBeGreaterThan(0)
})

it('Should return a list with prices of tokens using BRL', async () => {
bsNeoLegacy.network.type = 'mainnet'
const currency: Currency = 'BRL'
const tokenPriceList = await bsNeoLegacy.exchange.getTokenPrices(currency)
expect(tokenPriceList.length).toBeGreaterThan(0)
})

it('Should return a list with prices of tokens using EUR', async () => {
bsNeoLegacy.network.type = 'mainnet'
const currency: Currency = 'EUR'
const tokenPriceList = await bsNeoLegacy.exchange.getTokenPrices(currency)
expect(tokenPriceList.length).toBeGreaterThan(0)
Expand Down

0 comments on commit 09bfb74

Please sign in to comment.