package kiss_test import ( "h4kor/kiss-social" "strings" "testing" ) func TestCanRenderPost(t *testing.T) { user := getTestUser() post, _ := user.CreateNewPost("testpost") result, _ := kiss.RenderPost(post) if !strings.Contains(result, "

testpost

") { t.Error("Post title not rendered as h1. Got: " + result) } } func TestRendererUsesBaseTemplate(t *testing.T) { user := getTestUser() post, _ := user.CreateNewPost("testpost") result, _ := kiss.RenderPost(post) if !strings.Contains(result, "