Backend: Add tests to pkg/txt
This commit is contained in:
parent
44ce09bb29
commit
d21926f760
1 changed files with 3 additions and 0 deletions
|
@ -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(""))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue