We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efd5d96 commit d959188Copy full SHA for d959188
cli/request_test.go
@@ -8,6 +8,18 @@ import (
8
"gopkg.in/h2non/gock.v1"
9
)
10
11
+func TestFixAddress(t *testing.T) {
12
+ assert.Equal(t, "https://example.com", fixAddress("example.com"))
13
+ assert.Equal(t, "http://localhost:8000", fixAddress(":8000"))
14
+ assert.Equal(t, "http://localhost:8000", fixAddress("localhost:8000"))
15
+
16
+ configs["test"] = &APIConfig{
17
+ Base: "https://example.com",
18
+ }
19
+ assert.Equal(t, "https://example.com/foo", fixAddress("test/foo"))
20
+ delete(configs, "test")
21
+}
22
23
func TestRequestPagination(t *testing.T) {
24
defer gock.Off()
25
0 commit comments