Lint Tests Passing
All checks were successful
Continuous Integration / CI (push) Successful in 1m40s
All checks were successful
Continuous Integration / CI (push) Successful in 1m40s
Made lint tests pass
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
func TestListCryptocurrencies(t *testing.T) {
|
||||
// Create a test server that returns a dummy response
|
||||
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(`{"data": {"items": []}, "context": "/instruments/cryptocurrencies"}`))
|
||||
_,_ = w.Write([]byte(`{"data": {"items": []}, "context": "/instruments/cryptocurrencies"}`))
|
||||
}))
|
||||
defer ts.Close()
|
||||
|
||||
@@ -33,7 +33,7 @@ func TestListCryptocurrencies(t *testing.T) {
|
||||
func TestGetCryptocurrency(t *testing.T) {
|
||||
// Create a test server that returns a dummy response
|
||||
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(`{"data": {"symbol": "BTC/USD"}, "context": "/instruments/cryptocurrencies/BTC%2FUSD"}`))
|
||||
_,_ = w.Write([]byte(`{"data": {"symbol": "BTC/USD"}, "context": "/instruments/cryptocurrencies/BTC%2FUSD"}`))
|
||||
}))
|
||||
defer ts.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user