Fix TestCmdTimelone() as well.
parent
d6cb307605
commit
6abe72ddb0
|
@ -19,8 +19,8 @@ func TestCmdTimeline(t *testing.T) {
|
||||||
case "/api/v1/timelines/public":
|
case "/api/v1/timelines/public":
|
||||||
fmt.Fprintln(w, `[{"content": "public"}]`)
|
fmt.Fprintln(w, `[{"content": "public"}]`)
|
||||||
return
|
return
|
||||||
case "/api/v1/timelines/direct":
|
case "/api/v1/conversations":
|
||||||
fmt.Fprintln(w, `[{"content": "direct"}]`)
|
fmt.Fprintln(w, `[{"id": "4", "unread":false, "last_status" : {"content": "direct"}}]`)
|
||||||
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