-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserve_test.go
24 lines (22 loc) · 1 KB
/
serve_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
import (
"net/http"
"testing"
)
func TestServe(t *testing.T) {
// Render templates.
thttpget(t, publicMux, "/", nil, http.StatusOK)
thttpget(t, publicMux, "/webhooks", nil, http.StatusOK)
thttpget(t, publicMux, "/forward", nil, http.StatusOK)
thttpget(t, publicMux, "/unsubscribe", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/signup/", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/passwordreset/", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/moduleupdates/", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/signup/html", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/signup/text", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/passwordreset/html", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/passwordreset/text", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/moduleupdates/html", nil, http.StatusOK)
thttpget(t, publicMux, "/preview/moduleupdates/text", nil, http.StatusOK)
}