owl-blogs/post_test.go

13 lines
241 B
Go
Raw Normal View History

2022-07-21 17:44:07 +00:00
package kiss_test
import "testing"
func TestCanGetPostTitle(t *testing.T) {
user := getTestUser()
post, _ := user.CreateNewPost("testpost")
result := post.Title()
if result != "testpost" {
t.Error("Wrong Title. Got: " + result)
}
}