Show playoff alliance numbers and 4th teams on Match Play screen.

This commit is contained in:
Patrick Fairbank
2022-07-26 18:58:38 -07:00
parent f934d4a10d
commit 70a8c2347c
7 changed files with 146 additions and 11 deletions

View File

@@ -96,8 +96,11 @@ func TestPublishAlliances(t *testing.T) {
tbaServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
var reader bytes.Buffer
reader.ReadFrom(r.Body)
assert.Equal(t, "[[\"frc254\",\"frc469\",\"frc2848\",\"frc74\"],[\"frc1718\",\"frc2451\"]]",
reader.String())
assert.Equal(
t,
"[[\"frc254\",\"frc469\",\"frc2848\",\"frc74\",\"frc3175\"],[\"frc1718\",\"frc2451\",\"frc1619\"]]",
reader.String(),
)
}))
defer tbaServer.Close()
client := NewTbaClient("my_event_code", "my_secret_id", "my_secret")