geziyor/client/response_test.go
2021-10-05 22:13:00 +03:00

15 lines
323 B
Go

package client
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestResponse_JoinURL(t *testing.T) {
req, _ := NewRequest("GET", "https://localhost.com/test/a.html", nil)
resp := Response{Request: req}
joinedURL := resp.JoinURL("/source")
assert.Equal(t, "https://localhost.com/source", joinedURL)
}