mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
16 lines
258 B
Go
16 lines
258 B
Go
|
package api
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestLoginSanitize(t *testing.T) {
|
||
|
rawEmail := "Foo@foobar.com "
|
||
|
l := &login{
|
||
|
Email: rawEmail,
|
||
|
}
|
||
|
|
||
|
l.Sanitize()
|
||
|
if l.Email != "foo@foobar.com" {
|
||
|
t.Errorf("Expected normalized email address, got %s", l.Email)
|
||
|
}
|
||
|
}
|