Add tests for group and project access requests

parent 3a40efb5
This diff is collapsed.
......@@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"net/http/httptest"
......@@ -58,6 +59,10 @@ func testBody(t *testing.T, r *http.Request, want string) {
}
}
func errorOption(*http.Request) error {
return errors.New("OptionFunc returns an error")
}
func TestNewClient(t *testing.T) {
c := NewClient(nil, "")
expectedBaseURL := defaultBaseURL + apiVersionPath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment