diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-11 17:41:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 17:41:02 -0400 |
commit | d4af885c40ba55ea0ed9adade98afe0658099c47 (patch) | |
tree | 1c1f14428e39c8322c03d77912914647ce826d06 /svc/handlers_test.go | |
parent | 1349bbc6e6627f357065602e085be762aab06383 (diff) | |
parent | 3d2994b74c1105b4c6c8fe0c10d47d6d3541907a (diff) | |
download | getwtxt-d4af885c40ba55ea0ed9adade98afe0658099c47.tar.gz |
Merge pull request #3 from getwtxt/merge-indexHandler-cssHandler
merged indexHandler with cssHandler, updated tests
Diffstat (limited to 'svc/handlers_test.go')
-rw-r--r-- | svc/handlers_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svc/handlers_test.go b/svc/handlers_test.go index c393957..455950f 100644 --- a/svc/handlers_test.go +++ b/svc/handlers_test.go @@ -10,7 +10,7 @@ import ( "testing" ) -// The first three are testing whether the landing page is +// The first few are testing whether the landing page is // being sent correctly. If i change the base behavior of // /api // /api/plain @@ -23,7 +23,7 @@ func basicHandlerTest(path string, name string, t *testing.T) { w := httptest.NewRecorder() req := httptest.NewRequest("GET", path, nil) - indexHandler(w, req) + staticHandler(w, req) resp := w.Result() defer resp.Body.Close() @@ -51,7 +51,7 @@ func Benchmark_indexHandler(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { - indexHandler(w, req) + staticHandler(w, req) } } func Test_apiBaseHandler(t *testing.T) { @@ -224,7 +224,7 @@ func Test_cssHandler(t *testing.T) { req := httptest.NewRequest("GET", "http://localhost"+testport+"/css", nil) t.Run(name, func(t *testing.T) { - cssHandler(w, req) + staticHandler(w, req) resp := w.Result() defer resp.Body.Close() |