apiV0MediaHandler, apiV0TreeHandler

This commit is contained in:
Bel LaPointe
2022-02-08 10:54:19 -07:00
parent 9622c48395
commit 06deb5d0c9
4 changed files with 47 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"bytes"
"net/http"
"net/http/httptest"
"testing"
@@ -55,6 +56,12 @@ func TestServerRoutes(t *testing.T) {
if w.Code == http.StatusNotFound {
t.Fatal(w)
}
if !bytes.HasPrefix(w.Body.Bytes(), []byte("not impl")) {
if w.Code != http.StatusOK {
t.Fatal(w)
}
t.Logf("%s %s => %s", c.method, c.path, w.Body.Bytes())
}
})
}
}