Rename "commands" to "command"

This commit is contained in:
Marc Di Luzio 2020-07-05 12:55:01 +01:00
parent 1554b7c21b
commit ea4b7de4ac
8 changed files with 159 additions and 159 deletions

View file

@ -83,7 +83,7 @@ func TestServer_Command(t *testing.T) {
err := serv.Request("POST", "register", &rove.RegisterRequest{Name: acc}, &rove.RegisterResponse{})
assert.NoError(t, err, "First register attempt should pass")
err = serv.Request("POST", "commands", &rove.CommandsRequest{
err = serv.Request("POST", "command", &rove.CommandRequest{
Account: acc,
Commands: []*rove.Command{
{
@ -91,7 +91,7 @@ func TestServer_Command(t *testing.T) {
Bearing: "NE",
},
},
}, &rove.CommandsResponse{})
}, &rove.CommandResponse{})
assert.NoError(t, err, "Commands should should pass")
}