diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-16 15:13:01 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-16 15:13:01 -0600 |
| commit | 691e4ba30113cee3508a54fd2383e34f38b55bde (patch) | |
| tree | 51d299537a17826a1b43428ef7b5298fa1690875 /app/controllers/dashboard/controller_test.go | |
| parent | d24708251deb598c522a67e6615d3403d65dbcdc (diff) | |
feat: render a blank html page for the dashboard
Diffstat (limited to 'app/controllers/dashboard/controller_test.go')
| -rw-r--r-- | app/controllers/dashboard/controller_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/dashboard/controller_test.go b/app/controllers/dashboard/controller_test.go index ac9e10d..ff2482f 100644 --- a/app/controllers/dashboard/controller_test.go +++ b/app/controllers/dashboard/controller_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" + "github.com/stretchr/testify/assert" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/domain" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/test" - "gotest.tools/v3/assert" ) func TestController(t *testing.T) { @@ -35,6 +35,7 @@ func TestController(t *testing.T) { mux.ServeHTTP(w, r) assert.Equal(t, http.StatusOK, w.Code) assert.Equal(t, "text/html", w.Header().Get("Content-Type")) + assert.Contains(t, w.Body.String(), "<html") }) }) }) |
