package web import ( "testing" ) func Test_injectPartials(t *testing.T) { got, want := injectPartials(before), after if got != want { t.Errorf("Want html %q, got %q", want, got) } } var before = `
` var after = ` {{ template "version" . }} {{ template "user" . }} {{ template "csrf" . }} `