package layouts_test import ( "testing" "git.sapphic.engineer/roleypoly/v4/templates/templatetesting" "github.com/stretchr/testify/assert" ) func TestMainLayout(t *testing.T) { r := templatetesting.Template(t, "components/blank", struct{ HeadTitle string }{HeadTitle: "roleypoly"}, "layouts/main") assert.Contains(t, r, "", "loaded navigation (close)") assert.Contains(t, r, "roleypoly", "sets title") assert.Contains(t, r, "

hello world

", "has {{embed}}") }