Renamed controllers package to routes.

This commit is contained in:
mikestefanello 2021-12-14 11:13:53 -05:00
parent 60dedc0944
commit 869c507737
11 changed files with 12 additions and 12 deletions

View file

@ -1,20 +0,0 @@
package controllers
import (
"net/http"
"testing"
"github.com/stretchr/testify/assert"
)
func TestAbout_Get(t *testing.T) {
doc := request(t).
setRoute("about").
get().
assertStatusCode(http.StatusOK).
toDoc()
h1 := doc.Find("h1.title")
assert.Len(t, h1.Nodes, 1)
assert.Equal(t, "About", h1.Text())
}