Added response joinURL test and updated chromedp.
This commit is contained in:
15
client/response_test.go
Normal file
15
client/response_test.go
Normal file
@ -0,0 +1,15 @@
|
||||
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"))
|
||||
}
|
Reference in New Issue
Block a user