display acct in followers command

This commit is contained in:
Yasuhiro Matsumoto 2017-04-19 23:32:23 +09:00
parent 18d207636a
commit adca356db1
3 changed files with 15 additions and 12 deletions

View file

@ -17,7 +17,7 @@ func TestCmdFollowers(t *testing.T) {
fmt.Fprintln(w, `{"id": 123}`)
return
case "/api/v1/accounts/123/followers":
fmt.Fprintln(w, `[{"id": 234, "username": "zzz"}]`)
fmt.Fprintln(w, `[{"id": 234, "username": "ZZZ", "acct": "zzz"}]`)
return
}
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)