Backend: Add tests to pkg/txt

This commit is contained in:
Theresa Gresch 2020-04-28 17:25:14 +02:00
parent 44ce09bb29
commit d21926f760

View file

@ -9,4 +9,7 @@ func TestSlugToTitle(t *testing.T) {
t.Run("cute_Kitten", func(t *testing.T) {
assert.Equal(t, "Cute-Kitten", SlugToTitle("cute-kitten"))
})
t.Run("empty", func(t *testing.T) {
assert.Equal(t, "", SlugToTitle(""))
})
}