Skip to content

Commit

Permalink
fix: apis_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettiOverload committed Aug 10, 2023
1 parent 34a125f commit 64cb6e8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions client/cryptocompare/apis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/stretchr/testify/require"

"github.com/forbole/bdjuno/v4/client/cryptocompare"
"github.com/forbole/bdjuno/v4/types"
)

func TestConvertCryptocomparePrices(t *testing.T) {
Expand Down Expand Up @@ -134,16 +133,6 @@ func TestConvertCryptocomparePrices(t *testing.T) {
ccc := cryptocompare.NewClient(&cfg)
prices := ccc.ConvertCryptocompare(apisPrices)
require.Equal(t, 2, len(prices))

var cudosPrice *types.TokenPrice
for _, price := range prices {
if price.UnitName == "cudos" {
cudosPrice = &price
break
}
}

require.NotNil(t, cudosPrice, "CUDOS price not found")
require.Equal(t, 0.00237, cudosPrice.Price)
require.Equal(t, int64(21017810), cudosPrice.MarketCap)
require.Equal(t, 0.00237, prices[0].Price)
require.Equal(t, int64(21017810), prices[0].MarketCap)
}

0 comments on commit 64cb6e8

Please sign in to comment.