Skip to content

Commit

Permalink
chore: added coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Sep 18, 2024
1 parent ee87b65 commit 6f74f27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/coingecko.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"cosmos":{"usd":6.71}}
{"cosmos":{"usd":6.71},"test": {}}
3 changes: 2 additions & 1 deletion pkg/fetchers/price_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestPriceFetcherConsumerCoingeckoSuccess(t *testing.T) {

httpmock.RegisterResponder(
"GET",
"https://api.coingecko.com/api/v3/simple/price?ids=cosmos&vs_currencies=usd",
"https://api.coingecko.com/api/v3/simple/price?ids=cosmos,test&vs_currencies=usd",
httpmock.NewBytesResponder(200, assets.GetBytesOrPanic("coingecko.json")),
)

Expand All @@ -126,6 +126,7 @@ func TestPriceFetcherConsumerCoingeckoSuccess(t *testing.T) {
Name: "consumer",
Denoms: configPkg.DenomInfos{
{Denom: "uatom", DisplayDenom: "atom", CoingeckoCurrency: "cosmos"},
{Denom: "utest", DisplayDenom: "test", CoingeckoCurrency: "test"},
{Denom: "ustake", DisplayDenom: "stake"},
},
}},
Expand Down

0 comments on commit 6f74f27

Please sign in to comment.