mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
18 lines
284 B
Go
18 lines
284 B
Go
// Basic site layout tests.
|
|
package main
|
|
|
|
import (
|
|
"net/http/httptest"
|
|
"testing"
|
|
)
|
|
|
|
// Test site
|
|
func TestSite(t *testing.T) {
|
|
ts := httptest.NewServer(Router(StaticReport{}))
|
|
defer ts.Close()
|
|
|
|
is200(t, ts, "/")
|
|
is200(t, ts, "/index.html")
|
|
is404(t, ts, "/index.html/foobar")
|
|
}
|