Added response joinURL test and updated chromedp.

This commit is contained in:
Musab Gültekin
2019-09-13 14:34:29 +03:00
parent 3264057679
commit 9b8a3837bd
5 changed files with 24 additions and 13 deletions

15
client/response_test.go Normal file
View 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"))
}