geziyor/client/response_test.go
2019-09-13 14:34:29 +03:00

16 lines
322 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{
Response: nil,
Request: req,
}
assert.Equal(t, "https://localhost.com/source", resp.JoinURL("/source"))
}