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:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
func TestGetEquityData(t *testing.T) {
|
||||
server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||
rw.Write([]byte(`{"context": "test", "data": {"symbol": "AAPL"}}`))
|
||||
_,_ = rw.Write([]byte(`{"context": "test", "data": {"symbol": "AAPL"}}`))
|
||||
}))
|
||||
defer server.Close()
|
||||
|
||||
@@ -30,7 +30,7 @@ func TestGetEquityData(t *testing.T) {
|
||||
|
||||
func TestListEquities(t *testing.T) {
|
||||
server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||
rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL"}, {"symbol": "GOOG"}]}}`))
|
||||
_,_ = rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL"}, {"symbol": "GOOG"}]}}`))
|
||||
}))
|
||||
defer server.Close()
|
||||
|
||||
@@ -52,7 +52,7 @@ func TestListEquities(t *testing.T) {
|
||||
|
||||
func TestListActiveEquities(t *testing.T) {
|
||||
server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||
rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL"}, {"symbol": "GOOG"}]}}`))
|
||||
_,_ = rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL"}, {"symbol": "GOOG"}]}}`))
|
||||
}))
|
||||
defer server.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user