Fix test json property name

This commit is contained in:
y0za 2017-04-20 19:14:24 +09:00
parent bade3895da
commit e9f28b9c6e
5 changed files with 31 additions and 31 deletions

View file

@ -14,7 +14,7 @@ func TestCmdUpload(t *testing.T) {
func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path {
case "/api/v1/media":
fmt.Fprintln(w, `{"ID": 123}`)
fmt.Fprintln(w, `{"id": 123}`)
return
}
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)