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, "layouts/main", struct{ HeadTitle string }{HeadTitle: "roleypoly"}) assert.Contains(t, r, "%%EMBED%%", "has {{embed}}") assert.Contains(t, r, "", "loaded navigation (close)") assert.Contains(t, r, "