2022-04-15 09:42:07 +02:00
|
|
|
package clean
|
2021-12-15 12:24:05 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestUsername(t *testing.T) {
|
|
|
|
t.Run("Admin ", func(t *testing.T) {
|
|
|
|
assert.Equal(t, "admin", Username("Admin "))
|
|
|
|
})
|
|
|
|
t.Run(" Admin ", func(t *testing.T) {
|
|
|
|
assert.Equal(t, "admin", Username(" Admin "))
|
|
|
|
})
|
|
|
|
t.Run(" admin ", func(t *testing.T) {
|
|
|
|
assert.Equal(t, "admin", Username(" admin "))
|
|
|
|
})
|
|
|
|
}
|