Fix test json property name again
This commit is contained in:
parent
c417db5189
commit
1c95b07428
|
@ -15,7 +15,7 @@ func TestCmdToot(t *testing.T) {
|
||||||
switch r.URL.Path {
|
switch r.URL.Path {
|
||||||
case "/api/v1/statuses":
|
case "/api/v1/statuses":
|
||||||
toot = r.FormValue("status")
|
toot = r.FormValue("status")
|
||||||
fmt.Fprintln(w, `{"ID": 2345}`)
|
fmt.Fprintln(w, `{"id": 2345}`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
|
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user