Add test for absolute base paths

This commit is contained in:
Marius 2016-10-13 18:44:44 +02:00
parent 24e68df7cd
commit 474c78b79d
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ func TestPost(t *testing.T) {
handler, _ := NewHandler(Config{
DataStore: store,
BasePath: "/files/",
BasePath: "https://buy.art/files/",
})
(&httpTest{
@ -35,7 +35,7 @@ func TestPost(t *testing.T) {
},
Code: http.StatusCreated,
ResHeader: map[string]string{
"Location": "http://tus.io/files/foo",
"Location": "https://buy.art/files/foo",
},
}).Run(handler, t)
})